fixing commit ids.. once again

This commit is contained in:
Benjamin Harder
2024-02-19 00:52:37 +01:00
parent df3e4fc187
commit 11710a56dc
2 changed files with 7 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ jobs:
--label com.decluttarr.version=$IMAGE_TAG \
--label com.decluttarr.commit=$SHORT_COMMIT_ID \
--build-arg IMAGE_TAG=$IMAGE_TAG \
--build-arg SHORT_COMMIT_ID=$COMMIT_SHORT_SHA \
--build-arg SHORT_COMMIT_ID=$SHORT_COMMIT_ID \
-f docker/Dockerfile \
--push .

View File

@@ -42,11 +42,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
- name: Store short Commit ID in env variable
id: vars
run: |
calculatedSha=$(git rev-parse --short ${{ github.sha }})
echo "SHORT_COMMIT_ID=$calculatedSha" >> $GITHUB_ENV
- name: "Build, Tag, and push the Docker image"
env:
IMAGE_NAME: ghcr.io/manimatter/decluttarr
IMAGE_TAG: ${{ steps.setversion.outputs.new_tag }}
SHORT_COMMIT_ID: ${{ github.sha_short }}
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \