Skip to content

Commit 2ff7cd7

Browse files
authored
Update cd.yml
1 parent c9147bc commit 2ff7cd7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/cd.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ jobs:
2020
uses: s0240917/python-flask-docker@master
2121
env:
2222
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
23+
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
24+
ECR_REPOSITORY: my-app-repo
25+
IMAGE_TAG: ${{ github.sha }}
2326
with:
24-
args: apply deployment.yaml
27+
args: set image deployment/$ECR_REPOSITORY $ECR_REPOSITORY=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
28+

0 commit comments

Comments
 (0)