|
66 | 66 | - name: Docker Buildx
|
67 | 67 | uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
68 | 68 | with:
|
69 |
| - install: true |
70 |
| - version: latest |
71 | 69 | driver-opts: network=host
|
72 |
| - |
73 |
| - - name: Show Buildx version |
74 |
| - run: docker buildx version |
75 |
| - |
76 |
| - - name: Show Buildx help |
77 |
| - run: docker buildx --help |
78 |
| - |
79 |
| - - name: Show Buildx export help |
80 |
| - run: docker buildx imagetools export --help |
81 | 70 |
|
82 | 71 | - name: Setup QEMU
|
83 | 72 | uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
@@ -213,17 +202,11 @@ jobs:
|
213 | 202 | - name: Show all image tags for debugging
|
214 | 203 | run: echo "${{ steps.meta.outputs.tags }}"
|
215 | 204 |
|
216 |
| - - name: Login to GitHub Container Registry |
217 |
| - uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 |
218 |
| - with: |
219 |
| - registry: ghcr.io |
220 |
| - username: ${{ github.repository_owner }} |
221 |
| - password: ${{ secrets.GITHUB_TOKEN }} |
222 |
| - |
223 |
| - - name: Export and upload images |
| 205 | + - name: Pull and save image artifact for linux/amd64 |
224 | 206 | if: ${{ inputs.build-os == 'ubi' && !inputs.dry_run }}
|
225 | 207 | run: |
|
226 |
| - docker buildx imagetools export localhost:5000/nginx-gateway-fabric/${{ inputs.image }}:${{ steps.meta.outputs.version }} > ${{ inputs.image }}-${{ steps.meta.outputs.version }}.tar |
| 208 | + docker pull --platform=linux/amd64 localhost:5000/nginx-gateway-fabric/${{ inputs.image }}:${{ steps.meta.outputs.version }} |
| 209 | + docker save localhost:5000/nginx-gateway-fabric/${{ inputs.image }}:${{ steps.meta.outputs.version }} -o ${{ inputs.image }}-${{ steps.meta.outputs.version }}.tar |
227 | 210 |
|
228 | 211 | - name: Upload all image artifacts
|
229 | 212 | uses: actions/upload-artifact@v4
|
|
0 commit comments