Skip to content

Commit 1b3dddb

Browse files
committed
edited workflow file to reflect new large runner
1 parent 6861db6 commit 1b3dddb

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ permissions:
99

1010
jobs:
1111
build:
12-
# Note: If ubuntu-24.04-arm64 hangs, verify your Org settings for "Larger Runners"
13-
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-latest' || 'ubuntu-24.04-arm64' }}
12+
# Use the 'arm' suffix for the new optimized GitHub-hosted runners
13+
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-latest' || 'ubuntu-24.04-arm' }}
1414
strategy:
15-
fail-fast: false # Robustness: If one arch fails, don't kill the other immediately
15+
fail-fast: false
1616
matrix:
1717
arch: [amd64, arm64]
1818

@@ -42,9 +42,10 @@ jobs:
4242
context: .
4343
platforms: linux/${{ matrix.arch }}
4444
labels: ${{ steps.meta.outputs.labels }}
45-
# Use gha cache for speed across parallel runs
4645
cache-from: type=gha
4746
cache-to: type=gha,mode=max
47+
# This pushes the architecture-specific image to Docker Hub
48+
# using a unique SHA instead of a tag like 'latest'
4849
outputs: type=image,name=cdrl/3podr_container,push-by-digest=true,name-canonical=true,push=true
4950

5051
- name: Export digest
@@ -94,6 +95,7 @@ jobs:
9495
- name: Create manifest list and push
9596
working-directory: ${{ runner.temp }}/digests
9697
run: |
98+
# Robustly create the manifest using all generated tags from metadata-action
9799
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
98100
$(printf 'cdrl/3podr_container@sha256:%s ' *)
99101

0 commit comments

Comments
 (0)