Skip to content

Commit 81d047a

Browse files
committed
AP-533 pass in image build arguments
1 parent 7b84fb8 commit 81d047a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,22 @@ jobs:
5757
run: |
5858
echo "registry=$(echo '${{ steps.build-meta.outputs.tags }}' | cut -f1 -d:)" | tee -a "$GITHUB_OUTPUT"
5959
60+
61+
- id: set_build_url
62+
name: Set BUILD_URL
63+
run: |
64+
echo "build_url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" >> "$GITHUB_OUTPUT"
65+
6066
- id: build
6167
name: Build/push the arch-specific image
6268
uses: docker/build-push-action@v6
6369
with:
70+
build-args: |
71+
BUILD_TIMESTAMP=${{ github.event.repository.updated_at }}
72+
BUILD_URL=${{ steps.set_build_url.outputs.build_url }}
73+
GIT_REF_NAME=${{ github.ref_name }}
74+
GIT_SHA=${{ github.sha }}
75+
GIT_URL=${{ github.repositoryUrl }}
6476
cache-from: type=registry,ref=${{ steps.cache-meta.outputs.tags }}
6577
cache-to: type=registry,ref=${{ steps.cache-meta.outputs.tags }},mode=max
6678
labels: ${{ steps.build-meta.outputs.labels }}

0 commit comments

Comments
 (0)