Skip to content

Commit

Permalink
If we're on master, tag the container as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed May 22, 2024
1 parent e3d0b3e commit 01bc43c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ jobs:
run: |
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
if [[ $GITHUB_REF == refs/heads/master ]]; then
docker tag $REGISTRY/$REPOSITORY:$IMAGE_TAG $REGISTRY/$REPOSITORY:latest
docker push $REGISTRY/$REPOSITORY:latest
fi

0 comments on commit 01bc43c

Please sign in to comment.