Skip to content

Commit

Permalink
improve docker meta tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Aschwanden committed Aug 15, 2022
1 parent 9000db3 commit d9c3bff
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ghcr.io/RedGecko/sitrep
tags: |
# set latest tag for default branch
type=edge,branch=develop
type=raw,value=stable,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=ref,event=branch
type=ref,event=pr,prefix=pr-,enable=true,priority=600
type=semver,pattern={{version}},prefix=v,priority=420
type=semver,pattern={{major}}.{{minor}},prefix=v,priority=410
type=semver,pattern={{major}},prefix=v,priority=400
type=sha
- name: Build and push
uses: docker/build-push-action@v3
with:
Expand All @@ -44,6 +54,16 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ghcr.io/RedGecko/sitrep-hasura
tags: |
# set latest tag for default branch
type=edge,branch=develop
type=raw,value=stable,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=ref,event=branch
type=ref,event=pr,prefix=pr-,enable=true,priority=600
type=semver,pattern={{version}},prefix=v,priority=420
type=semver,pattern={{major}}.{{minor}},prefix=v,priority=410
type=semver,pattern={{major}},prefix=v,priority=400
type=sha
- name: Build and push
uses: docker/build-push-action@v3
with:
Expand Down

0 comments on commit d9c3bff

Please sign in to comment.