@@ -101,7 +101,7 @@ jobs:
101101 name : Build AMD64 Image
102102 runs-on : ubuntu-latest
103103 outputs :
104- image : ${{ steps.set-tags .outputs.amd64_image }}
104+ image : ${{ steps.set-job-output .outputs.image }}
105105 steps :
106106 - uses : actions/checkout@v4
107107
@@ -112,7 +112,7 @@ jobs:
112112 username : ${{ secrets.DOCKER_USERNAME }}
113113 password : ${{ secrets.DOCKER_PASSWORD }}
114114
115- - name : Set image tag
115+ - name : Set AMD64 image tag
116116 id : set-tags
117117 run : |
118118 REF_NAME=${GITHUB_REF#refs/tags/}
@@ -129,15 +129,16 @@ jobs:
129129 tags : ${{ steps.set-tags.outputs.amd64_image }}
130130 target : ${{ inputs.target }}
131131
132- - name : Set job output
132+ - name : Set job output for manifest
133+ id : set-job-output
133134 run : |
134135 echo "image=${{ steps.set-tags.outputs.amd64_image }}" >> $GITHUB_OUTPUT
135136
136137 build-arm64 :
137138 name : Build ARM64 Image
138- runs-on : ubuntu-24.04-arm
139+ runs-on : ubuntu-24.04-arm # native ARM64 runner
139140 outputs :
140- image : ${{ steps.set-tags .outputs.arm64_image }}
141+ image : ${{ steps.set-job-output .outputs.image }}
141142 steps :
142143 - uses : actions/checkout@v4
143144
@@ -148,7 +149,7 @@ jobs:
148149 username : ${{ secrets.DOCKER_USERNAME }}
149150 password : ${{ secrets.DOCKER_PASSWORD }}
150151
151- - name : Set image tag
152+ - name : Set ARM64 image tag
152153 id : set-tags
153154 run : |
154155 REF_NAME=${GITHUB_REF#refs/tags/}
@@ -165,11 +166,11 @@ jobs:
165166 tags : ${{ steps.set-tags.outputs.arm64_image }}
166167 target : ${{ inputs.target }}
167168
168- - name : Set job output
169+ - name : Set job output for manifest
170+ id : set-job-output
169171 run : |
170172 echo "image=${{ steps.set-tags.outputs.arm64_image }}" >> $GITHUB_OUTPUT
171173
172-
173174 create-manifest :
174175 name : Create Multi-Arch Manifest
175176 runs-on : ubuntu-latest
@@ -188,10 +189,13 @@ jobs:
188189 IMAGE="${{ inputs.image_name }}:$REF_NAME"
189190 AMD64_IMAGE="${{ needs.build-amd64.outputs.image }}"
190191 ARM64_IMAGE="${{ needs.build-arm64.outputs.image }}"
191-
192+
193+ echo "AMD64_IMAGE=$AMD64_IMAGE"
194+ echo "ARM64_IMAGE=$ARM64_IMAGE"
195+
192196 docker manifest create $IMAGE $AMD64_IMAGE $ARM64_IMAGE
193197 docker manifest push $IMAGE
194-
198+
195199 if [ "${{ inputs.add_latest }}" = "true" ]; then
196200 docker manifest create ${{ inputs.image_name }}:latest $AMD64_IMAGE $ARM64_IMAGE
197201 docker manifest push ${{ inputs.image_name }}:latest
0 commit comments