Skip to content

Commit c935e22

Browse files
committed
Remove deployment-env step
This is something that can and should be managed by Argo
1 parent d3f370d commit c935e22

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

docker-push/action.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff 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

2724
runs:
2825
using: composite
@@ -56,19 +53,4 @@ runs:
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+

0 commit comments

Comments
 (0)