Skip to content

Commit

Permalink
Use release version as version build-arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Soubinan committed Dec 27, 2023
1 parent 01d3001 commit af0acdb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
images: |
ghcr.io/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=semver,pattern={{ version }}
type=semver,pattern={{ major }}.{{ minor }}
type=semver,pattern={{ major }}
type=raw,latest
labels: |
org.opencontainers.image.source=${{ env.PROJECT_URL }}
Expand All @@ -38,6 +38,7 @@ jobs:
org.opencontainers.image.description=Ignition as a service
org.opencontainers.image.authors=${{ env.AUTHOR }}
org.opencontainers.image.licenses=CC-BY-SA-4.0
org.opencontainers.image.version={{ version }}
- name: Install cosign
if: github.event_name == 'release'
uses: sigstore/cosign-installer@v3
Expand All @@ -60,6 +61,8 @@ jobs:
file: "./Containerfile"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
version={{ version }}
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name == 'release' }}
Expand Down

0 comments on commit af0acdb

Please sign in to comment.