From 12844bb14bbef286515a566789d9e2fa3618b616 Mon Sep 17 00:00:00 2001 From: Gyanesh Mishra Date: Fri, 1 Dec 2023 16:18:12 -0800 Subject: [PATCH] try soci build push --- .github/workflows/build-soci.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-soci.yaml b/.github/workflows/build-soci.yaml index a9477bcd..29e9d9ce 100644 --- a/.github/workflows/build-soci.yaml +++ b/.github/workflows/build-soci.yaml @@ -80,14 +80,24 @@ jobs: - name: Import image in containerd run: | - sudo ctr i import --base-name ${{ steps.meta.outputs.tags }} --digests /tmp/lorax-${{ steps.meta.outputs.version }}.tar - rm -rf /tmp/lorax-${{ steps.meta.outputs.version }}.tar + for tag in ${{ steps.meta.outputs.tags }} + do + sudo ctr i import --base-name ghcr.io/predibase/lorax:$tag --digests /tmp/lorax-${{ steps.meta.outputs.version }}.tar + done + # rm -rf /tmp/lorax-${{ steps.meta.outputs.version }}.tar - name: Push image with containerd run: | - sudo ctr i push --user "${{ github.repository_owner }}:${{ secrets.GHCR_PAT }}" ${{ steps.meta.outputs.tags }} + for tag in ${{ steps.meta.outputs.tags }} + do + sudo ctr i import --base-name ghcr.io/predibase/lorax:$tag --digests /tmp/lorax-${{ steps.meta.outputs.version }}.tar + sudo ctr i push --user "${{ github.repository_owner }}:${{ secrets.GHCR_PAT }}" ghcr.io/predibase/lorax:$tag + done - name: Create and push soci index run: | - sudo soci create ${{ steps.meta.outputs.tags }} - sudo soci push --user ${{ github.repository_owner }}:${{ secrets.GHCR_PAT }} ${{ steps.meta.outputs.tags }} + for tag in ${{ steps.meta.outputs.tags }} + do + sudo soci create ghcr.io/predibase/lorax:$tag + sudo soci push --user ${{ github.repository_owner }}:${{ secrets.GHCR_PAT }} ghcr.io/predibase/lorax:$tag + done