fix(ci): add version info to docker builds (#68)

This commit is contained in:
Matt Kilgore
2024-06-27 20:51:14 -04:00
committed by GitHub
parent 51c21edb67
commit a3f4c97049
2 changed files with 8 additions and 0 deletions

View File

@@ -86,6 +86,10 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
VERSION=${{ github.ref_name }}
COMMIT=$(git rev-parse HEAD)
BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
- name: Attest
uses: actions/attest-build-provenance@v1

View File

@@ -83,6 +83,10 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
VERSION=${{ github.ref_name }}
COMMIT=$(git rev-parse HEAD)
BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
- name: Attest
uses: actions/attest-build-provenance@v1