Skip to content

Commit

Permalink
Update build-release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jekabs-karklins committed Dec 2, 2022
1 parent 1dd9b49 commit 12028a4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build release

on:
release:
tags:
- 'v*'
types:
- created

Expand All @@ -25,8 +27,11 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
flavor: latest=true # adds :latest tag to outputs.tags
tags: type=sha,format=long,prefix= # adds :<sha> output to outputs.tags
flavor: latest=false
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=stable,enable=${{startsWith(github.ref, 'refs/tags/v')}}
type=ref,event=tag
- name: Build and push
uses: docker/build-push-action@v2
Expand Down

0 comments on commit 12028a4

Please sign in to comment.