GitHub Actions Step by Step DEMO for Beginners

Sdílet
Vložit
  • čas přidán 23. 08. 2024

Komentáře • 79

  • @dhruvchopra5719
    @dhruvchopra5719 Před rokem +13

    You are a saviour Raghav! Cannot thank you enough for your lectures and knowledge sharing, A big big Thanks 👍

  • @roneproduction
    @roneproduction Před dnem

    I just paused the video to say, that you are excelent, you explain really well the concepts behind this things, keep up my friend

    • @RaghavPal
      @RaghavPal  Před dnem

      So happy and humbled to see this.. thanks a lot

  • @jaminDNB
    @jaminDNB Před 9 měsíci

    Absolutely blown away by your educational content, Raghav! 🚀 Clear explanations, well-chosen examples - making learning a breeze. Your work is expanding my knowledge. Keep the outstanding content coming! 🌟💻📚

  • @sreeharshamg
    @sreeharshamg Před 16 dny

    Very good video for Github Actions beginner. Nice Explanation. Thank you.

  • @vijaikannan3143
    @vijaikannan3143 Před rokem +4

    Your video for Beginners is very useful. Helped me a lot. Step by Step explanation about YAML is marvelous. Is it possible to create more videos on this Github Actions. Interested to learn more on this.

  • @samsonadewunmi8242
    @samsonadewunmi8242 Před 9 měsíci

    This is a very good introduction lesson for GitHub Actions. Good job.

  • @zeerakkhan274
    @zeerakkhan274 Před 10 měsíci

    Great, concise and informative video for the absolute beginners like me. Thankyou for the video!

    • @RaghavPal
      @RaghavPal  Před 10 měsíci

      You're very welcome Zeerak

  • @awaisbaig47
    @awaisbaig47 Před 28 dny

    Thanks for the video. Please make a project video to deploy the github action on AWS of a simple webpage

  • @SarangHoley
    @SarangHoley Před rokem

    Thanks a lot @Raghav for starting up this series 😊 excited for it.

  • @dimchetrifunov3444
    @dimchetrifunov3444 Před rokem

    Very good presentation Raghav !👏

  • @konduruvenkateswarlu5652

    Your lectures are easy to learn sir.. Thank you 🙏

  • @zainulkhan8381
    @zainulkhan8381 Před měsícem

    Very clearly explained sir !!!

  • @venkateshd1208
    @venkateshd1208 Před rokem

    Thanks for wonderful video. Your video is helped me on github actions stage 1. Thanks a lot! Please make more videos on this topica step by step

  • @davidsneek9659
    @davidsneek9659 Před rokem

    Crystal clear explanation. Thank you. 👍

  • @monotoshmondal9185
    @monotoshmondal9185 Před 11 měsíci

    Thanks..that was so simple and lucid Sir

    • @RaghavPal
      @RaghavPal  Před 11 měsíci

      You are welcome Monotosh

  • @SineQuaNon1
    @SineQuaNon1 Před rokem

    Another great video. Many thanks Raghav.

  • @MrLeadchunker
    @MrLeadchunker Před rokem

    Great video, it really demystified GitHub Actions for me!

  • @aditikhandelwal8105
    @aditikhandelwal8105 Před rokem

    Thank you. Your videos always helps to understand in easy and better way. Can you please create more content on this topic...Github actions for devops.

    • @RaghavPal
      @RaghavPal  Před rokem

      Yes I will plan for it Aditi, the basics are covered here, Let me know what more topics do you need to see

  • @SparklingMiles
    @SparklingMiles Před rokem

    Loved it ! Thanks Raghav :)

  • @nilamm2598
    @nilamm2598 Před 9 měsíci

    Thank you. What about advance workflows. Do you have more of this? Also how to see/check event is triggered once code is pushed.

    • @RaghavPal
      @RaghavPal  Před 9 měsíci

      will add more on this Nilam

  • @Inshorts_pk
    @Inshorts_pk Před rokem +1

    Hi @Raghav, fantastic explanation. Is there any continuation tutorial available for this GitHub Actions?

    • @RaghavPal
      @RaghavPal  Před rokem

      Hi Prem, not for now, I created this for beginners to get started with GitHub Actions

    • @Inshorts_pk
      @Inshorts_pk Před rokem

      @@RaghavPal But it was wonderful. It would be helpful if you continue so..

    • @RaghavPal
      @RaghavPal  Před rokem

      Yes, I will do more sessions on this. You can suggest the topics Prem

  • @aakashsonkusare69
    @aakashsonkusare69 Před 11 měsíci +2

    We run Jenkins server as docker agent, then in Github action how will we do that? Bit confused

    • @RaghavPal
      @RaghavPal  Před 11 měsíci +4

      Akash
      To run a Jenkins server as a Docker agent in GitHub Actions, you can use the following steps:
      1. Create a Dockerfile that defines the Jenkins image. The Dockerfile should include the following steps:
      * Install the Jenkins server.
      * Install the plugins that you need.
      * Configure the Jenkins server.
      2. Build the Docker image.
      3. Create a GitHub Actions workflow file. The workflow file should include the following steps:
      * Create a Docker agent.
      * Run the Jenkins job.
      Here is an example of a Dockerfile that defines a Jenkins image:
      ```
      FROM jenkins/jenkins:latest
      RUN apt-get update && apt-get install -y git
      RUN jenkins-plugin-cli install greenballs
      ```
      Here is an example of a GitHub Actions workflow file that runs a Jenkins job:
      ```
      name: Run Jenkins job
      on:
      push:
      branches:
      - main
      jobs:
      build:
      runs-on: ubuntu-latest
      steps:
      - uses: docker/setup-agent@v2
      - name: Run Jenkins job
      run: |
      docker run -it --rm \
      -v jenkins_home:/var/jenkins_home \
      jenkins/jenkins:latest \
      /bin/bash -c "jenkins -s"
      ```
      This workflow file will create a Docker agent, run the Jenkins job, and then delete the Docker agent.
      I hope this helps

  • @Street2Tech
    @Street2Tech Před rokem

    Awesome as usual. Thanks a lot

  • @user-de3yw2kl6l
    @user-de3yw2kl6l Před měsícem

    thankyou, good one

  • @softwaretestinglearninghub

    Great explanation, thank you!

  • @phaniindra884
    @phaniindra884 Před 6 měsíci

    Nice explanation

  • @amarnatha1614
    @amarnatha1614 Před 3 měsíci

    Thank you somuch sir

  • @ManishKak
    @ManishKak Před 8 měsíci

    thats a really nice tutorial

  • @vishalgupta2869
    @vishalgupta2869 Před 4 měsíci

    Nice

  • @AriKhuu
    @AriKhuu Před 9 měsíci

    Thank you

  • @faisalakml
    @faisalakml Před 4 měsíci

    im add 2 test syntax on my package json like:
    test-register : "npx cypress run register"
    test-login : "npx cypress run login"
    how to run both of that on git action yaml? im using && but failed on jobs

    • @RaghavPal
      @RaghavPal  Před 4 měsíci

      Akmal
      To run multiple commands sequentially in a GitHub Actions workflow YAML, you can use the `run` attribute with a pipe (`|`) to chain the commands together. Let's create a workflow that executes both your `test-register` and `test-login` commands:
      ```yaml
      name: Cypress Tests
      on:
      push:
      branches:
      - main # Adjust this to your branch name
      jobs:
      cypress_tests:
      runs-on: ubuntu-latest
      steps:
      - name: Checkout code
      uses: actions/checkout@v2
      - name: Install dependencies
      run: npm install # Replace with your package manager command
      - name: Run Cypress tests
      run: |
      npx cypress run register
      npx cypress run login
      ```
      Here's what each section does:
      1. Checkout code: Fetches your repository code.
      2. Install dependencies: Installs the necessary dependencies (you can replace this with your actual package manager command).
      3. Run Cypress tests: Executes both `npx cypress run register` and `npx cypress run login` sequentially.
      Make sure to adjust the branch name in the `on` section to match your desired trigger. If you encounter any issues, double-check your package.json scripts and ensure that the Cypress commands are correctly configured.

  • @Divikarthik
    @Divikarthik Před 20 dny

    Hi Ragav
    In my organisation i was asked to minimise the execution time of the workflow jobs in github actions. Eg. Our github actions are taking 45 mins to complete the total jobs. If I am able to complete within 30mins its a big achievement.
    How can i achieve it?

    • @RaghavPal
      @RaghavPal  Před 20 dny

      Divikarthik
      Let's break down the problem step by step to minimize the execution time of workflow jobs in GitHub Actions.
      Step 1: Identify the current bottleneck
      * Review the GitHub Actions workflow logs to identify which jobs are taking the most time to complete
      * Look for jobs with long execution times, and note the specific steps or commands that are causing the delay
      Step 2: Optimize job parallelization
      * Check if the workflow is running multiple jobs in sequence. If so, consider parallelizing them using GitHub Actions' built-in parallelization feature
      * Use the `jobs..strategy.matrix` syntax to run multiple jobs concurrently, reducing the overall execution time
      Step 3: Improve caching
      * Check if your workflow is re-running expensive operations or re-downloading dependencies on each run
      * Implement caching for dependencies, such as npm or pip packages, using GitHub Actions' cache feature
      * Use the `actions/cache` action to store and retrieve cached dependencies
      Step 4: Optimize resource utilization
      * Review the workflow's resource usage, such as CPU, memory, and disk space
      * Consider upgrading the GitHub Actions runner to a more powerful machine type, if possible
      * Optimize the workflow to use resources more efficiently, such as by reducing the number of concurrent tasks or using more efficient algorithms
      Step 5: Reduce unnecessary steps
      * Review the workflow's steps and remove any unnecessary or redundant operations
      * Simplify the workflow by combining steps or eliminating unnecessary dependencies
      Step 6: Leverage GitHub Actions' built-in optimizations
      * Use GitHub Actions' built-in features, such as `continue-on-error` and `timeout`, to optimize job execution
      * Set reasonable timeouts for jobs to prevent them from running indefinitely
      Step 7: Monitor and analyze workflow performance
      * Use GitHub Actions' built-in metrics and analytics to monitor workflow performance
      * Identify trends and patterns in workflow execution times to optimize further
      Step 8: Implement incremental improvements
      * Implement small, incremental changes to the workflow and measure their impact on execution time
      * Continue to iterate and refine the workflow until the desired execution time of 30 minutes is achieved
      By following these steps, you should be able to identify areas for improvement and optimize your GitHub Actions workflow to reduce the execution time to 30 minutes or less
      --

    • @Divikarthik
      @Divikarthik Před 19 dny

      @@RaghavPal Thanks Raghav

  • @aakashsonkusare69
    @aakashsonkusare69 Před 11 měsíci

    Sir can you please come up with Github Actions real interview questions?

  • @sourabhdeshpande2112
    @sourabhdeshpande2112 Před 10 měsíci

    i creeated the action created my workflow then commited action are not started

    • @RaghavPal
      @RaghavPal  Před 10 měsíci

      Sourabh
      There are a few possible reasons why your GitHub Actions workflow may not be starting:
      * The workflow may be misconfigured. For example, the workflow may be missing a required trigger or event.
      * The workflow may be referring to a repository that does not exist.
      * The workflow may be referring to a branch or tag that does not exist.
      * The workflow may be referring to a file that does not exist.
      * The workflow may be trying to access a resource that is not available.
      To troubleshoot the issue, you can try the following:
      * Check the workflow configuration for errors.
      * Make sure that the workflow is referring to the correct repository, branch, tag, and file.
      * Make sure that the workflow is not trying to access any resources that are not available.
      * If you are still having problems, you can try asking for help on the GitHub Actions forum or Slack channel.
      In the meantime, you can try manually triggering the workflow by clicking the "Run workflow" button on the GitHub Actions tab.
      I hope this helps

  • @rekhakalasare4910
    @rekhakalasare4910 Před rokem

    How to make project available online after deploying through github actions

    • @RaghavPal
      @RaghavPal  Před rokem +1

      Hi Rekha,
      To make your project available online after deploying through Github Actions, you need to host your application on a web server or a cloud platform that supports your application's stack. Here are the general steps to do this:
      Choose a hosting provider: There are many hosting providers available that support various application stacks. Some popular options are Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft Azure, Heroku, and Netlify. Choose a provider that supports your application's stack and fits your requirements.
      Create an account and set up your project: Follow the provider's instructions to create an account and set up your project. This usually involves creating a new instance or server, configuring security settings, and connecting to your Github repository.
      Deploy your application: Depending on the provider, there are different ways to deploy your application. Some providers support automatic deployment from Github, where your application is automatically deployed to the server after every commit. Others require manual deployment through a command-line interface or a web interface. Follow the provider's instructions to deploy your application.
      Configure your DNS settings: Once your application is deployed, you need to configure your DNS settings to point to your server. This involves creating a DNS record that maps your domain name to your server's IP address. The specific steps depend on your domain registrar and hosting provider.
      Test your application: After configuring your DNS settings, test your application to make sure it's available online. You can do this by visiting your domain name in a web browser.
      Overall, the process of making your project available online after deploying through Github Actions involves deploying your application to a web server or a cloud platform and configuring your DNS settings to point to your server. The specific steps depend on the hosting provider you choose and your application's stack

  • @rebekahoj
    @rebekahoj Před měsícem

    i tried to find the link of the notes, could not

    • @RaghavPal
      @RaghavPal  Před měsícem

      Oloja
      I keep all notes in the description below the video.. pls check

  • @12CadetSpaceCadet
    @12CadetSpaceCadet Před rokem

    thank you!