Skip to content

Commit 467f0e7

Browse files
committed
Updating environment order of operations
1 parent 3a434da commit 467f0e7

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/github-release.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ concurrency:
3838
run-name: ${{ inputs.node_tag || inputs.signer_tag }}
3939

4040
jobs:
41+
andon-cord:
42+
if: |
43+
inputs.node_tag != '' ||
44+
inputs.signer_tag != ''
45+
name: Build Binaries
46+
runs-on: ubuntu-latest
47+
environment: "Build Release"
48+
steps:
49+
- name: Check Approval
50+
id: check
51+
run: |
52+
return true
4153
## Build arch dependent binaries from source
4254
##
4355
## Runs when the following is true:
@@ -48,7 +60,8 @@ jobs:
4860
inputs.signer_tag != ''
4961
name: Build Binaries
5062
runs-on: ubuntu-latest
51-
environment: "Build Release"
63+
needs:
64+
- andon-cord
5265
strategy:
5366
## Run a maximum of 10 builds concurrently, using the matrix defined in inputs.arch
5467
max-parallel: 10
@@ -91,6 +104,7 @@ jobs:
91104
name: Create Release
92105
runs-on: ubuntu-latest
93106
needs:
107+
- andon-cord
94108
- build-binaries
95109
permissions:
96110
contents: write
@@ -107,7 +121,6 @@ jobs:
107121
is_signer_release: ${{ inputs.is_signer_release }}
108122
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109123

110-
111124
## Builds arch dependent Docker images from binaries
112125
##
113126
## Note: this step requires the binaries in the create-release step to be uploaded
@@ -120,6 +133,7 @@ jobs:
120133
name: Docker Image (Binary)
121134
runs-on: ubuntu-latest
122135
needs:
136+
- andon-cord
123137
- build-binaries
124138
- create-release
125139
strategy:
@@ -152,6 +166,7 @@ jobs:
152166
name: Create Downstream PR (${{ github.ref_name }})
153167
runs-on: ubuntu-latest
154168
needs:
169+
- andon-cord
155170
- build-binaries
156171
- create-release
157172
- docker-image

.github/workflows/image-build-source.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
image:
2222
name: Build Image
2323
runs-on: ubuntu-latest
24+
environment: "Push to Docker"
2425
steps:
2526
## Setup Docker for the builds
2627
- name: Docker setup

0 commit comments

Comments
 (0)