Skip to content
Snippets Groups Projects
Commit d8f5a783 authored by Lars Seipel's avatar Lars Seipel
Browse files

build: push container image with tags based on commit SHA

parent 102452b5
No related branches found
No related tags found
No related merge requests found
...@@ -78,16 +78,20 @@ jobs: ...@@ -78,16 +78,20 @@ jobs:
flavor: | flavor: |
latest = false latest = false
tags: | tags: |
type=ref,event=branch,enable=${{ matrix.variant == 'alpine' }} type=ref,event=branch,enable=${{ github.ref_name == github.event.repository.default_branch && matrix.variant == 'alpine' }}
type=ref,event=pr,prefix=pr-,enable=${{ matrix.variant == 'alpine' }} type=ref,event=pr,prefix=pr-,enable=${{ matrix.variant == 'alpine' }}
type=semver,pattern={{raw}},enable=${{ matrix.variant == 'alpine' }} type=semver,pattern={{raw}},enable=${{ matrix.variant == 'alpine' }}
type=raw,value=latest,enable=${{ github.ref_name == github.event.repository.default_branch && matrix.variant == 'alpine' }} type=raw,value=latest,enable=${{ github.ref_name == github.event.repository.default_branch && matrix.variant == 'alpine' }}
type=ref,event=branch,suffix=-${{ matrix.variant }} type=ref,event=branch,enable={{is_default_branch}},suffix=-${{ matrix.variant }}
type=ref,event=pr,prefix=pr-,suffix=-${{ matrix.variant }} type=ref,event=pr,prefix=pr-,suffix=-${{ matrix.variant }}
type=semver,pattern={{raw}},suffix=-${{ matrix.variant }} type=semver,pattern={{raw}},suffix=-${{ matrix.variant }}
type=raw,value=latest,enable={{is_default_branch}},suffix=-${{ matrix.variant }} type=raw,value=latest,enable={{is_default_branch}},suffix=-${{ matrix.variant }}
type=sha,prefix=g,enable=${{ matrix.variant == 'alpine' }}
type=sha,prefix=g,suffix=-${{ matrix.variant }}
labels: | labels: |
org.opencontainers.image.documentation=https://dexidp.io/docs/ org.opencontainers.image.documentation=https://dexidp.io/docs/
env:
DOCKER_METADATA_SHORT_SHA_LENGTH: 12
# Multiple exporters are not supported yet # Multiple exporters are not supported yet
# See https://github.com/moby/buildkit/pull/2760 # See https://github.com/moby/buildkit/pull/2760
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment