Skip to content

Commit

Permalink
Fix docker metadata tags
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed May 2, 2024
1 parent 2804b43 commit 0c48710
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
version:
type: string
required: true
semver-pattern:
tag-pattern:
type: string
required: false
default: "{{version}}"
default: "type=semver,pattern={{version}}"

jobs:
build:
Expand Down Expand Up @@ -40,8 +40,7 @@ jobs:
with:
images: ghcr.io/${{ github.repository }}
flavor: latest=false
tags: |
type=semver,pattern=${{ inputs.semver-pattern }},value=${{ inputs.version }}
tags: ${{ inputs.tag-pattern }},value=${{ inputs.version }}

- name: Generate GitHub metadata
id: github-meta
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ jobs:
matrix: ${{fromJson(needs.generate-canonical.outputs.matrix)}}
with:
version: ${{ matrix.releases }}
semver-pattern: "{{major}}.{{minor}}"
tag-pattern: "type=raw"
secrets: inherit

0 comments on commit 0c48710

Please sign in to comment.