Skip to content

Commit

Permalink
build: Rename tag
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksilassila committed Jun 9, 2024
1 parent d2effde commit 20cf5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ jobs:
run: docker tag ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{env.TAG}}

- name: Add tag
run: docker tag ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest-1.0
run: docker tag ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest-v1

# - name: Tag with Git SHA
# run: docker tag ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{github.sha}}

- name: Push to Docker Hub
run: |
docker push ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{env.TAG}}
docker push ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest-1.0
docker push ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest-v1

0 comments on commit 20cf5d0

Please sign in to comment.