Skip to content

Commit

Permalink
test update sha
Browse files Browse the repository at this point in the history
  • Loading branch information
timam committed May 16, 2024
1 parent ed4ddbe commit d93d01c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ jobs:
run: |
cd demo/lambda/src
docker build -t ${{ steps.login-ecr.outputs.registry }}/demo-awscd-2024:$GITHUB_SHA -f Dockerfile .
docker push ${{ steps.login-ecr.outputs.registry }}/demo-awscd-2024:$GITHUB_SHA
docker push ${{ steps.login-ecr.outputs.registry }}/demo-awscd-2024:$GITHUB_SHA
- name: Replace the Docker image tag with Git SHA in deploy.yaml
run: |
export GIT_SHA=$(echo $GITHUB_SHA | cut -c1-8)
sed -i "s/:.*/:$GIT_SHA/" demo/lambda/deployment/deploy.yaml

0 comments on commit d93d01c

Please sign in to comment.