GitHub Actions Step by Step DEMO for Beginners

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 86

  • @dhruvchopra5719
    @dhruvchopra5719 Рік тому +13

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

  • @roneproduction
    @roneproduction 3 місяці тому

    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  3 місяці тому

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

  • @samsonadewunmi8242
    @samsonadewunmi8242 Рік тому

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

  • @jaminDNB
    @jaminDNB Рік тому

    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! 🌟💻📚

  • @serat5572
    @serat5572 9 днів тому

    It was a nice video with very simple and well understood explanation. I was expecting more videos of github actions with more use cases.

    • @RaghavPal
      @RaghavPal  9 днів тому

      Glad it was helpful Serat. will plan to add more lectures

  • @dimchetrifunov3444
    @dimchetrifunov3444 Рік тому

    Very good presentation Raghav !👏

  • @SarangHoley
    @SarangHoley Рік тому

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

  • @sreeharshamg
    @sreeharshamg 3 місяці тому

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

    • @RaghavPal
      @RaghavPal  3 місяці тому

      Most welcome Sreeharsha

  • @vijaikannan3143
    @vijaikannan3143 Рік тому +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.

  • @zeerakkhan274
    @zeerakkhan274 Рік тому

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

    • @RaghavPal
      @RaghavPal  Рік тому

      You're very welcome Zeerak

  • @monotoshmondal9185
    @monotoshmondal9185 Рік тому

    Thanks..that was so simple and lucid Sir

  • @davidsneek9659
    @davidsneek9659 Рік тому

    Crystal clear explanation. Thank you. 👍

  • @SineQuaNon1
    @SineQuaNon1 Рік тому

    Another great video. Many thanks Raghav.

  • @konduruvenkateswarlu5652
    @konduruvenkateswarlu5652 Рік тому +1

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

  • @zainulkhan8381
    @zainulkhan8381 5 місяців тому

    Very clearly explained sir !!!

    • @RaghavPal
      @RaghavPal  5 місяців тому

      Glad to hear that Zainul

  • @pdharmendra
    @pdharmendra 2 місяці тому

    Very detailed out in your presentation...Thanks

    • @pdharmendra
      @pdharmendra 2 місяці тому +1

      Very Very much confused Released pipeline set-up for Azure if you got a chance to make video thx

    • @RaghavPal
      @RaghavPal  2 місяці тому

      I will check on that Dharmendra

  • @aakashsonkusare69
    @aakashsonkusare69 Рік тому +2

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

    • @RaghavPal
      @RaghavPal  Рік тому +6

      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

  • @venkateshd1208
    @venkateshd1208 Рік тому

    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

  • @MrLeadchunker
    @MrLeadchunker Рік тому

    Great video, it really demystified GitHub Actions for me!

  • @nilamm2598
    @nilamm2598 Рік тому

    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  Рік тому

      will add more on this Nilam

  • @SparklingMiles
    @SparklingMiles Рік тому

    Loved it ! Thanks Raghav :)

  • @baigsaab47
    @baigsaab47 4 місяці тому

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

  • @aditikhandelwal8105
    @aditikhandelwal8105 Рік тому

    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  Рік тому

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

  • @ManishKak
    @ManishKak 11 місяців тому

    thats a really nice tutorial

    • @RaghavPal
      @RaghavPal  11 місяців тому

      Thanks a lot Manish

  • @phaniindra884
    @phaniindra884 9 місяців тому

    Nice explanation

    • @RaghavPal
      @RaghavPal  9 місяців тому

      Thanks and welcome

  • @Inshorts_pk
    @Inshorts_pk Рік тому +1

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

    • @RaghavPal
      @RaghavPal  Рік тому

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

    • @Inshorts_pk
      @Inshorts_pk Рік тому

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

    • @RaghavPal
      @RaghavPal  Рік тому

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

  • @softwaretestinglearninghub
    @softwaretestinglearninghub Рік тому

    Great explanation, thank you!

  • @Street2Tech
    @Street2Tech Рік тому

    Awesome as usual. Thanks a lot

  • @amarnatha1614
    @amarnatha1614 6 місяців тому

    Thank you somuch sir

    • @RaghavPal
      @RaghavPal  6 місяців тому

      Most welcome Amarnatha

  • @DhanyaViswanathan
    @DhanyaViswanathan 5 місяців тому

    thankyou, good one

    • @RaghavPal
      @RaghavPal  5 місяців тому

      You're welcome Dhanya

  • @imalkagunasekara8725
    @imalkagunasekara8725 Місяць тому

    Great

  • @Divinaren1
    @Divinaren1 3 місяці тому

    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  3 місяці тому

      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
      --

    • @Divinaren1
      @Divinaren1 3 місяці тому

      @@RaghavPal Thanks Raghav

  • @vishalgupta2869
    @vishalgupta2869 7 місяців тому

    Nice

  • @faisalakml
    @faisalakml 8 місяців тому

    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  8 місяців тому +1

      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.

  • @AriKhuu
    @AriKhuu Рік тому

    Thank you

  • @aakashsonkusare69
    @aakashsonkusare69 Рік тому

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

  • @sourabhdeshpande2112
    @sourabhdeshpande2112 Рік тому

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

    • @RaghavPal
      @RaghavPal  Рік тому

      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 Рік тому

    How to make project available online after deploying through github actions

    • @RaghavPal
      @RaghavPal  Рік тому +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 5 місяців тому

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

    • @RaghavPal
      @RaghavPal  5 місяців тому

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

  • @12CadetSpaceCadet
    @12CadetSpaceCadet Рік тому

    thank you!