Skip to content

Commit

Permalink
tagged builds
Browse files Browse the repository at this point in the history
Signed-off-by: ygelfand <[email protected]>
  • Loading branch information
ygelfand committed Feb 25, 2024
1 parent 590f675 commit a1be14b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ jobs:
images: ygelfand/go-powerwall
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{version}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix={{branch}}-
type=sha,prefix={{branch}}-,enable=${{ !startsWith(github.ref, 'refs/tags/v.') }}
type=raw,value={{branch}}-latest,enable=${{ !startsWith(github.ref, 'refs/tags/v.') }}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@v5
Expand Down

0 comments on commit a1be14b

Please sign in to comment.