Skip to content

Commit

Permalink
tagged docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
dasph committed May 30, 2023
1 parent 3162788 commit 0c38caa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ jobs:

- name: Build and Push Container 🏗️
run: |-
IMAGE=${{ vars.LOCATION }}-docker.pkg.dev/${{ vars.PROJECT }}/${{ vars.REPOSITORY }}/${{ vars.SERVICE }}:${{ github.sha }}
REPO=${{ vars.LOCATION }}-docker.pkg.dev/${{ vars.PROJECT }}/${{ vars.REPOSITORY }}/${{ vars.SERVICE }}
IMAGE=$REPO:${{ github.sha }}
docker build -t $IMAGE ./
docker push $IMAGE
docker tag $IMAGE $REPO:latest
docker push $REPO:latest
- name: Cleanup Google Artifact Registry 🧹
run: |-
Expand Down

0 comments on commit 0c38caa

Please sign in to comment.