Skip to content

Commit

Permalink
Updated tags for generated docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
retrodaredevil committed Mar 22, 2023
1 parent 079013b commit 007bf66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,15 @@ jobs:
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/wildmountainfarms/${{ matrix.data.image-name }}
# expressions: https://docs.github.com/en/actions/learn-github-actions/expressions
tags: |
type=raw,value=edge,enable=${{ github.ref == 'refs/heads/master' }}
# in our case {{major}} is actually a year, so it's not really signifying a major release
type=semver,pattern={{major}}.{{minor}}.{{patch}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,priority=750,enable=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'rc') && !contains(github.ref, 'beta') }}
type=raw,value=beta,priority=750,enable=${{ startsWith(github.ref, 'refs/tags/') && (contains(github.ref, 'rc') || contains(github.ref, 'beta')) }}
type=edge,branch=master
type=sha,format=short
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
labels: |
maintainer=retrodaredevil
Expand Down

0 comments on commit 007bf66

Please sign in to comment.