Skip to content

Commit

Permalink
fix: latest tag for main
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvija Tovernic committed Sep 19, 2024
1 parent a101c8c commit f04d5ee
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-build-if-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ jobs:
- name: Build Docker Image
run: docker build -t $REGISTRY/$IMAGE_NAME:$IMAGE_TAG $IMAGE_FOLDER

- name: Tag Docker Image as ubuntu
if: github.ref == 'refs/heads/main'
run: docker tag $REGISTRY/$IMAGE_NAME:$IMAGE_TAG $REGISTRY/$IMAGE_NAME:latest

- name: Push Docker image
run: |
docker push $REGISTRY/$IMAGE_NAME:$IMAGE_TAG
- name: Tag and push Docker image as latest
if: github.ref == 'refs/heads/main'
run: |
docker tag $REGISTRY/$IMAGE_NAME:$IMAGE_TAG $REGISTRY/$IMAGE_NAME:latest
docker push $REGISTRY/$IMAGE_NAME:latest

0 comments on commit f04d5ee

Please sign in to comment.