Skip to content

Commit

Permalink
fix: use release version as docker image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
StarTrooper08 committed Feb 20, 2024
1 parent 67a2ee8 commit e0ae0da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build, Optimize and Publish Docker Image to Github Registry
on:
push:
branches: ['main']
release:
types: [published]

jobs:
build:
Expand Down Expand Up @@ -47,7 +49,7 @@ jobs:
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}:${{ github.event.release.tag_name }}
labels: ${{ steps.meta.outputs.tags }}

- name: Optimize Docker Image
Expand Down

0 comments on commit e0ae0da

Please sign in to comment.