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:
evazion
2021-09-07 06:06:04 -05:00
parent 29d5a99fca
commit 266192c599
3 changed files with 3 additions and 40 deletions

View File

@@ -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