'Generic Commit'
Some checks failed
dropshell-build multiarch / build (linux/arm64) (push) Successful in 11s
dropshell-build multiarch / build (linux/amd64) (push) Successful in 5m37s
dropshell-build multiarch / create-manifest (push) Failing after 14s

This commit is contained in:
Your Name 2025-06-15 14:08:14 +12:00
parent 515cd64247
commit e5bf605c08

View File

@ -50,19 +50,24 @@ jobs:
username: DoesntMatter
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y jq
- name: Create and push manifest list
run: |
# Only create manifest on main branch
if [ "$GITHUB_REF" = "refs/heads/main" ]; then
# Pull the architecture-specific images first to ensure they're available
docker pull gitea.jde.nz/public/dropshell-build-base:latest-x86_64
docker pull gitea.jde.nz/public/dropshell-build-base:latest-aarch64
# Get the digest of each architecture-specific image
X86_64_DIGEST=$(docker manifest inspect gitea.jde.nz/public/dropshell-build-base:latest-x86_64 | jq -r '.config.digest')
AARCH64_DIGEST=$(docker manifest inspect gitea.jde.nz/public/dropshell-build-base:latest-aarch64 | jq -r '.config.digest')
# Create the manifest list
# Create the manifest list using the architecture-specific digests
docker manifest create gitea.jde.nz/public/dropshell-build-base:latest \
--amend gitea.jde.nz/public/dropshell-build-base:latest-x86_64 \
--amend gitea.jde.nz/public/dropshell-build-base:latest-aarch64
--amend gitea.jde.nz/public/dropshell-build-base@$X86_64_DIGEST \
--amend gitea.jde.nz/public/dropshell-build-base@$AARCH64_DIGEST
# Push the manifest list
docker manifest push gitea.jde.nz/public/dropshell-build-base:latest