Compare commits

...

3 Commits

Author SHA1 Message Date
GuoQing Liu
52e6fbebd2
Update build args to use short SHA output 2025-11-13 00:07:49 +08:00
GuoQing Liu
78c3108d94
Add short-sha output to action.yml 2025-11-13 00:06:28 +08:00
GuoQing Liu
230a397d0f
Add build argument for GIT_COMMIT_HASH in CI workflow 2025-11-12 23:46:49 +08:00
2 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,8 @@ inputs:
GITHUB_TOKEN:
required: true
outputs:
short-sha:
value: ${{ steps.create-short-sha.outputs.SHORT_SHA }}
image-name:
value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ steps.create-short-sha.outputs.SHORT_SHA }}
cache-name:

View File

@ -37,6 +37,8 @@ jobs:
context: .
file: docker/main/Dockerfile
push: true
build-args:
GIT_COMMIT_HASH=${{ steps.setup.outputs.short-sha }}
platforms: linux/amd64
target: frigate
tags: ${{ steps.setup.outputs.image-name }}-amd64
@ -61,6 +63,8 @@ jobs:
context: .
file: docker/main/Dockerfile
push: true
build-args:
GIT_COMMIT_HASH=${{ steps.setup.outputs.short-sha }}
platforms: linux/arm64
target: frigate
tags: |