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