File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed
Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,7 @@ inputs:
1919 project_id :
2020 description : GCP project_id used to construct the service account.
2121 required : true
22- deployment_env :
23- description : If set, create a GitHub deployment in the given environment.
24- required : false
25- default : " "
22+
2623
2724runs :
2825 using : composite
5653 while IFS= read -r image_tag; do
5754 docker push $image_tag
5855 done <<< "${IMAGE_TAGS}"
59- - name : Create GitHub deployment
60- if : inputs.deployment_env != ''
61- run : |
62- gh api "repos/${GITHUB_REPOSITORY}/deployments" \
63- -f environment="${DEPLOYMENT_ENV}" \
64- -f ref="${GITHUB_REF}" \
65- -F auto_merge=false \
66- -F required_contexts[] \
67- -F payload[image_tag]="${IMAGE_TAG}"
68- env :
69- DEPLOYMENT_ENV : ${{ inputs.deployment_env }}
70- GH_TOKEN : ${{ github.token }}
71- GITHUB_REG : ${{ github.ref }}
72- GITHUB_REPOSITORY : ${{ github.repository }}
73- IMAGE_TAG : ${{ inputs.image_tag }}
74- shell : sh
56+
You can’t perform that action at this time.
0 commit comments