From bdfa79f54ea8657abfc226f5f08d8d87b1480e14 Mon Sep 17 00:00:00 2001 From: Sunidhi-Gaonkar1 Date: Thu, 30 Jun 2022 16:47:40 +0530 Subject: [PATCH] Upadate promote.yml to copy multiarch image --- .github/workflows/promote.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml index 05eb4f4a7..3410b36a6 100644 --- a/.github/workflows/promote.yml +++ b/.github/workflows/promote.yml @@ -43,11 +43,12 @@ jobs: run: | echo ${{ secrets.QUAY_TOKEN }} | docker login quay.io -u ${{ secrets.QUAY_USER }} --password-stdin - - name: Re-tag and promote awx image - run: | - docker pull ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} - docker tag ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} quay.io/${{ github.repository }}:${{ github.event.release.tag_name }} - docker tag ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} quay.io/${{ github.repository }}:latest - docker push quay.io/${{ github.repository }}:${{ github.event.release.tag_name }} - docker push quay.io/${{ github.repository }}:latest + - name: Copy Image to Quay + uses: akhilerm/tag-push-action@v2.0.0 + with: + src: ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} + dst: | + quay.io/${{ github.repository }}:${{ github.event.release.tag_name }} + quay.io/${{ github.repository }}:latest +