Skip to content

Commit a6ced69

Browse files
committed
Reference by id after buildah pull
Signed-off-by: Joseph <[email protected]>
1 parent f7076ac commit a6ced69

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/quay_binaries_push.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ jobs:
6464

6565
- name: Load images and create manifest
6666
run: |
67-
# Load all arch images
68-
buildah pull oci-archive:oadp-cli-image-amd64/oadp-cli-amd64.tar
69-
buildah pull oci-archive:oadp-cli-image-arm64/oadp-cli-arm64.tar
70-
buildah pull oci-archive:oadp-cli-image-ppc64le/oadp-cli-ppc64le.tar
71-
buildah pull oci-archive:oadp-cli-image-s390x/oadp-cli-s390x.tar
72-
73-
# Tag them for manifest
74-
buildah tag localhost/oadp-cli-binaries-local:amd64 ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-amd64
75-
buildah tag localhost/oadp-cli-binaries-local:arm64 ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-arm64
76-
buildah tag localhost/oadp-cli-binaries-local:ppc64le ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-ppc64le
77-
buildah tag localhost/oadp-cli-binaries-local:s390x ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-s390x
67+
# Load all arch images and capture their IDs
68+
AMD64_ID=$(buildah pull oci-archive:oadp-cli-image-amd64/oadp-cli-amd64.tar)
69+
ARM64_ID=$(buildah pull oci-archive:oadp-cli-image-arm64/oadp-cli-arm64.tar)
70+
PPC64LE_ID=$(buildah pull oci-archive:oadp-cli-image-ppc64le/oadp-cli-ppc64le.tar)
71+
S390X_ID=$(buildah pull oci-archive:oadp-cli-image-s390x/oadp-cli-s390x.tar)
72+
73+
# Tag the loaded images using their IDs
74+
buildah tag $AMD64_ID ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-amd64
75+
buildah tag $ARM64_ID ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-arm64
76+
buildah tag $PPC64LE_ID ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-ppc64le
77+
buildah tag $S390X_ID ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-s390x
7878
7979
- name: Buildah login
8080
run: buildah login -u ${{ secrets.QUAY_USER }} -p ${{ secrets.QUAY_TOKEN }} quay.io

0 commit comments

Comments
 (0)