Skip to content

Commit

Permalink
Fix docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yonahd authored Sep 19, 2023
1 parent 3e29096 commit 77392bd
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,18 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4

- name: Extract metadata for the Docker image
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/kor

- name: Build and push the Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: yonahdissen/my-image:${{ github.event.release.tag_name }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 77392bd

Please sign in to comment.