Skip to content

Commit ce6d68b

Browse files
ci: add GIT_COMMIT_HASH build arg (#72)
This build arg is injected into the code and printed at boot up, which is useful to know exactly what version of the code is being executed in a container. Signed-off-by: Travis Johnson <[email protected]> Co-authored-by: Joe Runde <[email protected]>
1 parent 0e3692d commit ce6d68b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ jobs:
104104
with:
105105
context: .
106106
target: server-release
107+
build-args: |
108+
GIT_COMMIT_HASH=${{ github.sha }}
107109
tags: ${{ steps.meta.outputs.tags }}
108110
cache-from: type=registry,ref=${{ env.CACHE_IMAGE }}
109111
cache-to: ${{ env.CACHE_TO }}

0 commit comments

Comments
 (0)