Skip to content

Commit

Permalink
chore: tagging docker image with current git sha
Browse files Browse the repository at this point in the history
  • Loading branch information
artursudnik committed Oct 12, 2023
1 parent 5764971 commit 826f056
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy-vc-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,19 @@ jobs:
env:
ECR_REGISTRY: ${{ steps.login-ecr-ssi.outputs.registry }}
AWS_ECR_REPOSITORY_SSI: ${{ secrets.DEV_ECR_REPOSITORY }}
GIT_SHA: ${{ github.sha }}
run: |
docker build \
-t $ECR_REGISTRY/$AWS_ECR_REPOSITORY_SSI \
-t $ECR_REGISTRY/$AWS_ECR_REPOSITORY_SSI:$GIT_SHA \
-f apps/vc-api/Dockerfile .
# - name: Push Docker image
# working-directory: ./vc-api-owf
# env:
# GIT_SHA: ${{ github.sha }}
# run: |
# docker push \
# $ECR_REGISTRY/$AWS_ECR_REPOSITORY_SSI
# $ECR_REGISTRY/$AWS_ECR_REPOSITORY_SSI:$GIT_SHA

- name: Logout of Amazon ECR
if: always()
Expand All @@ -64,4 +67,4 @@ jobs:
# id: argocd_image_tag_overwrite_ssi
# with:
# command: app set ssi-wallet
# options: -p image.tag=${{ A-TAG-NEEDS-TO-BE-SET-TO-A-NEW-ONE-HERE }}
# options: -p image.tag=${{ github.sha }}

0 comments on commit 826f056

Please sign in to comment.