mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-21 00:05:35 +02:00
test
This commit is contained in:
14
.github/workflows/main-multiX.yml
vendored
14
.github/workflows/main-multiX.yml
vendored
@@ -55,4 +55,18 @@ jobs:
|
||||
--build-arg SHORT_COMMIT_ID=$SHORT_COMMIT_ID \
|
||||
--push \
|
||||
|
||||
- name: Add architecture-specific labels
|
||||
run: |
|
||||
# Get the manifest digest for the image
|
||||
manifest_digest=$(docker manifest inspect $IMAGE_NAME:$IMAGE_TAG | jq -r '.manifests[] | select(.platform.architecture=="amd64") | .digest')
|
||||
# Add label for amd64
|
||||
docker manifest annotate $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:$IMAGE_TAG-amd64 --os linux --arch amd64 $manifest_digest
|
||||
|
||||
manifest_digest=$(docker manifest inspect $IMAGE_NAME:$IMAGE_TAG | jq -r '.manifests[] | select(.platform.architecture=="arm64") | .digest')
|
||||
# Add label for arm64
|
||||
docker manifest annotate $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:$IMAGE_TAG-arm64 --os linux --arch arm64 $manifest_digest
|
||||
|
||||
manifest_digest=$(docker manifest inspect $IMAGE_NAME:$IMAGE_TAG | jq -r '.manifests[] | select(.platform.architecture!="amd64" and .platform.architecture!="arm64") | .digest')
|
||||
# Add label for unknown architectures
|
||||
docker manifest annotate $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:$IMAGE_TAG-unknown --os linux --arch unknown $manifest_digest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user