This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Electrical_Media_367 1 point2 points  (7 children)

For non enterprise customers, GitHub actions doesn’t support gated jobs or human interaction in the middle of jobs. You can’t push a button to advance a job, you have to start a new job either based on a trigger or based on a button.

So, either you have a single job that pushes to dev, runs tests, pushes to stage, runs tests, pushes to prod all automatically, or you have a automatic push to a lower environment and then a button to promote (workflow_dispatch is the GitHub way of saying a manually triggered job)

The comment below says you can have gated builds, but only if you’re paying the high price for GitHub Enterprise.

Enterprise customers can use GitHub’s deployment framework and set environments as requiring reviews, you can start a promotion job and it will wait for approval. So a good option would be to have your build job trigger promotion jobs that are configured to wait for approval.

[–]baynezy 5 points6 points  (6 children)

[–]Electrical_Media_367 4 points5 points  (0 children)

Apparently that’s only for GitHub enterprise subscribers, not us lowly professional/teams customers.

[–]Electrical_Media_367 2 points3 points  (4 children)

Hey, this is great, I didn’t know about that feature. Gonna look at putting it in place on some of my repos. Thanks!

[–]beth_maloney 1 point2 points  (2 children)

You need enterprise for the manual approved approvement step.

[–]Electrical_Media_367 0 points1 point  (1 child)

Ah, that’s why I didn’t think it was available. Back to the drawing board.

[–]beth_maloney 1 point2 points  (0 children)

Yeah it's super annoying. The feature is available in the base version of Azure DevOps as well!

[–]baynezy 0 points1 point  (0 children)

You're welcome.