Provide expected Docker image build args in the Publish workflow.
This commit is contained in:
12
.github/workflows/publish.yml
vendored
12
.github/workflows/publish.yml
vendored
@@ -44,6 +44,12 @@ jobs:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Get commit timestamp
|
||||
run: echo "COMMIT_TIMESTAMP=$(git show -s --format=%ci HEAD)" >> $GITHUB_ENV
|
||||
|
||||
- name: Get commit short SHA
|
||||
run: echo "COMMIT_SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -72,6 +78,12 @@ jobs:
|
||||
context: .
|
||||
file: ${{ matrix.image.dockerfile }}
|
||||
platforms: linux/arm64,linux/amd64
|
||||
# TODO: clean up build arg and environment variable naming.
|
||||
build-args: |
|
||||
CI_COMMIT_BRANCH=${{ github.ref_name }}
|
||||
CI_COMMIT_SHA=${{ github.sha }}
|
||||
CI_COMMIT_SHORT_SHA=${{ env.COMMIT_SHORT_SHA }}
|
||||
CI_COMMIT_TIMESTAMP=${{ env.COMMIT_TIMESTAMP }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
provenance: true
|
||||
|
||||
Reference in New Issue
Block a user