File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 description : " Environment name for Docker layer cache scope (dev/staging/production)"
1919 required : true
2020 type : string
21+ github-environment :
22+ description : " Optional GitHub Environment name used for secrets/approvals"
23+ required : false
24+ type : string
25+ default : " "
2126 tags :
2227 description : " docker/metadata-action tags spec (multiline)"
2328 required : true
4045 sha-short :
4146 description : " 7-char commit SHA used for image tagging"
4247 value : ${{ jobs.build.outputs.sha-short }}
43- secrets :
44- AWS_ROLE_TO_ASSUME :
45- required : true
46- AWS_REGION :
47- required : true
4848
4949jobs :
5050 build :
5151 name : " (${{ matrix.service }})"
5252 runs-on : ubuntu-latest
5353 timeout-minutes : 20
54+ environment : ${{ inputs.github-environment != '' && inputs.github-environment || inputs.env-name }}
5455 strategy :
5556 matrix :
5657 service : [backend, frontend]
You can’t perform that action at this time.
0 commit comments