From 11c6d9120eb3a3925698566753d9a39738ccbff3 Mon Sep 17 00:00:00 2001 From: Ryan Drew Date: Mon, 19 Jul 2021 16:57:59 -0600 Subject: [PATCH] Fix invalid archive name --- .github/workflows/functional.yml | 2 +- .github/workflows/push-tests.yml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index 4024b5c3..0ac61178 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -102,7 +102,7 @@ jobs: - name: Save Image as Artifact uses: actions/upload-artifact@v2 with: - name: ${{ matrix.image_name }}:${{ env.IMAGE_TAG }} + name: ${{ matrix.image_name }}.${{ env.IMAGE_TAG }} path: ${{ matrix.image_name }}.${{ env.IMAGE_TAG }}.tar retention-days: 10 - name: Set benchmark image environment variable diff --git a/.github/workflows/push-tests.yml b/.github/workflows/push-tests.yml index d46c3230..7eb414af 100644 --- a/.github/workflows/push-tests.yml +++ b/.github/workflows/push-tests.yml @@ -24,7 +24,9 @@ jobs: for image in ${image_archives[*]} do - image_name=`echo $image | awk -F "/" '{print $(NF-1)}'` + image_archive_name=`echo $image | awk -F "/" '{print $(NF-1)}'` + image_name=`echo $image_archive_name | cut -d'.' -f1` + image_tag=`echo $image_archive_name | cut -d'.' -f2` podman load -i $image - podman image push quay.io/${{ secrets.REGISTRY_USER }}/$image_name + podman image push quay.io/${{ secrets.REGISTRY_USER }}/$image_name:$image_tag done