diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 799269b..7e9d709 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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