Skip to content

Commit

Permalink
ci(actions): individual tagging policy fo db images
Browse files Browse the repository at this point in the history
  • Loading branch information
WerySkok committed Nov 4, 2024
1 parent fdc6d95 commit fc15e2c
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,11 @@ jobs:
images: |
ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.DB_IMAGE_NAME}}
tags: |
type=sha
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=raw,value=,enable={{is_default_branch}}
flavor: |
latest=auto
prefix=${{env.DB_VERSION}}-primary
type=sha,prefix=${{env.DB_VERSION}}-primary-
type=ref,event=branch,prefix=${{env.DB_VERSION}}-primary-
type=ref,event=pr,prefix=${{env.DB_VERSION}}-primary-
type=ref,event=tag,prefix=${{env.DB_VERSION}}-primary-
type=raw,value=${{env.DB_VERSION}}-primary,enable={{is_default_branch}}
- name: MariaDB event meta
id: db-eventmeta
Expand All @@ -64,14 +61,11 @@ jobs:
images: |
ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.DB_IMAGE_NAME}}
tags: |
type=sha
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=raw,value=,enable={{is_default_branch}}
flavor: |
latest=auto
prefix=${{env.DB_VERSION}}-eventdb-
type=sha,prefix=${{env.DB_VERSION}}-eventdb-
type=ref,event=branch,prefix=${{env.DB_VERSION}}-eventdb-
type=ref,event=pr,prefix=${{env.DB_VERSION}}-eventdb-
type=ref,event=tag,prefix=${{env.DB_VERSION}}-eventdb-
type=raw,value=${{env.DB_VERSION}}-eventdb,enable={{is_default_branch}}
# - name: Log into registry
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
Expand Down

0 comments on commit fc15e2c

Please sign in to comment.