GitHub Actions: Approvals, Environments and Visualization DEEP DIVE

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 46

  • @CoderDave
    @CoderDave  3 ปีที่แล้ว +2

    ✨ *Question of the day* ✨: Do you like these new features? How do you plan to use them?
    🆘 NEED HELP? 🆘
    Book a 1:1 Consultation with CoderDave: geni.us/cdconsult
    We can talk about GitHub, Azure DevOps, or any other DevOps tool or project you need help with!
    🙏🏻SUPPORT THE CHANNEL🙏🏻
    Buy me a coffee: www.buymeacoffee.com/CoderDave
    PayPal me donation: paypal.me/dabenveg

  • @pluralcloud1756
    @pluralcloud1756 3 ปีที่แล้ว +1

    Keep your content coming- -appreciate it

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว +1

      Thanks, I definitely will ☺️

  • @RoshanSingh-kc6os
    @RoshanSingh-kc6os 3 ปีที่แล้ว +1

    Thanks for sharing this video.. really like

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว

      Thanks! What do you like the most in the video?

  • @son7211
    @son7211 3 ปีที่แล้ว +1

    Thanks! love the detail explanation. Now this is added to my favorite 😎👍

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว +1

      Thanks to you! Merry Christmas if you celebrate it and happy new year 🎊

  • @TypeScriptTV
    @TypeScriptTV 2 ปีที่แล้ว

    Great tutorial! It showed me how to review deployment jobs. Thanks a lot! Benny

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      Glad it was helpful!

  • @LawyerAB
    @LawyerAB 2 ปีที่แล้ว +1

    Hello, thank you for explanation. I have a question for you please. Who transfer the code between environments? For example when developers done their codes who pushes to test environment and when testers done who pushes codes to next environment? And who creates these environments on GitHub in real projects? Thanks in advance.

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      Hey, happy it's been helpful
      About your questions is a matter of process... in many processes, no-one pushes the code... the code is pushed to the branch once... and build once, the build creates what is know as artifact (basically the result of the build, which could be a zip file, a binary, or anything that you can deploy) and then a job in the workflow deploys that artifact to the first environment (let's say Dev).
      if changes need to be made, the current run is invalidated, changes are made, and a new updated artifact is deployed to Dev.
      when the status is ok, you can approve the next deployment and a new job in teh same workflow will deploy THE SAME ARTIFACT to the next environment, and so on so forth.
      It is very important to note I said "the same artifact". This means that there is no build or code change between environments. The application is built once, and then the exact same binaries are deployed to the different environments (this ensure that if a binary was working in QA, it will work in staging, prod, etc because no code is changed)
      About the "who creates the environments", well again it depends... could be a Release manager, the DevOps team, or anyone else with enough permissions

  • @arxi29
    @arxi29 9 หลายเดือนก่อน

    great tutorial

    • @CoderDave
      @CoderDave  9 หลายเดือนก่อน

      Thank you! Cheers!

  • @johnpaulmoaje5358
    @johnpaulmoaje5358 2 ปีที่แล้ว

    Very informative. Thank you for sharing!

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      Glad you enjoyed it!

  • @MrLablanco
    @MrLablanco 9 หลายเดือนก่อน

    Thank you mate! very useful!

    • @CoderDave
      @CoderDave  9 หลายเดือนก่อน

      Glad it helped!

  • @lee45283
    @lee45283 ปีที่แล้ว

    Great video, it’s very cool feature. Shame you need an enterprise subscription, seems a pretty common requirement even for small teams

  • @vadimkalinin8677
    @vadimkalinin8677 ปีที่แล้ว +2

    Hi Dave, thanks for a great overview. Do you perhaps know if one step or job requiring approval, say Production, was once approved will this approval be inherited by consequent steps and jobs in the same workflow? Basically speaking, am I approving a particular step or the whole workflow?

    • @CoderDave
      @CoderDave  ปีที่แล้ว +1

      Happy you found this helpful. The approval is set on the environment, and the environment is set at Job level. Therefore the approval is at job level, meaning that once approved all the steps in the job will be executed.

    • @vadimkalinin8677
      @vadimkalinin8677 ปีที่แล้ว +1

      Thanks for replying. Yeah, although I understand the logic behind, was a little upset when found this out by trials and errors.
      I wanted to approve 2 reusable workflows running on same environment at once. Eventually, needed to introduce separate job in front for the purpose of approval.

  • @fernandozpiccin
    @fernandozpiccin 3 ปีที่แล้ว +1

    Great video.
    Does anyone know if its possible to deploy releases to specific environments?

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว +1

      Thanks. Do you mean the "GitHub Releases"? If so, it is not possible to deploy the releases directly (they are basically a "storage" to fix in time whatever artifact you want. But you can have an Action workflow triggered by a release creation. In the workflow you could read the content of the release and therefore use that artifact to deploy to the environment you want.

  • @MildronizeWangth
    @MildronizeWangth 2 ปีที่แล้ว

    Thanks Good explanation.

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      Thanks, happy you liked it ☺️

  • @Chatsworth1979
    @Chatsworth1979 3 ปีที่แล้ว +1

    Question about what you discuss at the 12:00 mark: I created an environment. Then I clicked the code view, on the right where your screen shows Releases, Packages, and Environments mine shows Releases, Packages, and Languages. I did not actually build and deploy to the Environment, I simply created and configured one Environment. Could that be why? Maybe a build and deployment is required? Thanks for any info.

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว

      That's correct, it won't show unless there been a deployment activity on that environment

  • @ammarmansoor7783
    @ammarmansoor7783 3 ปีที่แล้ว +1

    Hey liked the video a lot and left a like. These new features sound like they would definitely help an agile team. But quick question. How does environment protection work with mid + sized team if you have multiple developers working on different tasks in the same repo? Lets say dev one checks in code and is waiting approval and while waiting dev 2 checks in his code and is then awaiting approval as well. What is the behavior of Github Actions pipeline in this state?

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว +2

      If a deployment A is waiting for approval in an environment, and another deployment B is queued for the same environment you''ll have it both waiting for approval. Then it is a matter of which one you approve first. Anyway, the other will still be in waiting state until you either approve it or cancel it.

  • @kamalkamals
    @kamalkamals 2 ปีที่แล้ว +1

    on settings on my project cannot found environement option

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว +1

      Is it a private repo? If so it is normal, environments are available only on public repos. If you want to have them on private repos you need to be on GitHub Enterprise 😕

    • @kamalkamals
      @kamalkamals 2 ปีที่แล้ว +1

      @@CoderDave yep yep it s enable by default if using normal account but not free for organization :(

  • @414121
    @414121 3 ปีที่แล้ว +1

    The Environment setting, in my case, only appears on the public repository. Is that your case?

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว +2

      Yes, that’s correct. I believe I mention this also in the video, Environments are available only for public repos. If you have GitHub Enterprise, then it’s available also on private repos.

    • @414121
      @414121 3 ปีที่แล้ว +2

      @@CoderDave Yes, I did not notice when you comment. I re-watched the video. Thanks to and congrats on your work.

  • @swathiadhik
    @swathiadhik 2 ปีที่แล้ว

    How do I disable email notification for the review deployments approval,as I donot need email notification, is there any settings to do this at organization level instead of manually unsubscribing it can we do it in settings?

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      I believe that, at least for now, it is not possible

  • @swathiadhik
    @swathiadhik 2 ปีที่แล้ว

    Hey can u pls lemme know if we can modify
    If a job is not approved within 30 days, the workflow run will be automatically canceled.
    30days to lesser number and how?

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      Unfortunately at the moment it is not possible to change that value

  • @akashmohapatra1008
    @akashmohapatra1008 2 ปีที่แล้ว +1

    for private repository what to do ?

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      Unfortunately, this is not available for private repos on either personal account or teams plan :( GitHub has decided to make this available on private repos only in the GitHub Enterprise Cloud (GHEC) :(
      If you are on private repos but not on GHEC, then you'd need to use some kind of workaround

  • @raj080288
    @raj080288 2 ปีที่แล้ว

    Would the environment variables deploy automatically to their servers?

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      Not sure what you mean. You still have the deployment steps for your environments/servers/targets in the workflow. The Environment section of the job specifications allows you to control things like environment-specific secrets, approvals, etc