test manual build

This commit is contained in:
buanet
2023-04-12 13:50:04 +02:00
parent f56a523e55
commit 9e8f8bfd1e

View File

@@ -58,17 +58,14 @@ jobs:
run: |
# Build the Docker image for all platforms
docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7 -t ghcr.io/buanet/iobroker:dev -f ./debian/node18/Dockerfile ./debian
# Create the Docker manifest for the image
docker manifest create ghcr.io/buanet/iobroker:dev ghcr.io/buanet/iobroker:dev-amd64 ghcr.io/buanet/iobroker:dev-arm64 ghcr.io/buanet/iobroker:dev-armv7
# Annotate the manifest with the architecture details
docker manifest annotate ghcr.io/buanet/iobroker:dev ghcr.io/buanet/iobroker:dev-amd64 --os linux --arch amd64
docker manifest annotate ghcr.io/buanet/iobroker:dev ghcr.io/buanet/iobroker:dev-arm64 --os linux --arch arm64
docker manifest annotate ghcr.io/buanet/iobroker:dev ghcr.io/buanet/iobroker:dev-armv7 --os linux --arch arm --variant v7
# Build manifest for dev-amd64
echo $(docker manifest inspect ghcr.io/buanet/iobroker:dev) | jq -r '.manifests[] | select(.platform.architecture == "amd64") | .digest'
docker manifest create ghcr.io/buanet/iobroker:dev-amd64 \
ghcr.io/buanet/iobroker@$(echo $(docker manifest inspect ghcr.io/buanet/iobroker:dev) | jq -r '.manifests[] | select(.platform.architecture == "amd64") | .digest')
# Push the Docker manifest to the registry
docker manifest push ghcr.io/buanet/iobroker:dev
docker manifest push ghcr.io/buanet/iobroker:dev-amd64
# - name: Extract metadata (tags, labels)
# id: metadata