ci: fix docker image not including git hash.
Fix the Docker image not including the git hash of the build. On DockerHub we had to set it with a build hook, but now with Github we set it as part of the build-push-action.
This commit is contained in:
3
.github/workflows/test.yaml
vendored
3
.github/workflows/test.yaml
vendored
@@ -68,6 +68,9 @@ jobs:
|
||||
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache
|
||||
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max
|
||||
|
||||
build-args: |
|
||||
SOURCE_COMMIT=${{ github.sha }}
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: docker
|
||||
|
||||
Reference in New Issue
Block a user