Skip to content

Commit

Permalink
try soci build push
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyanesh Mishra authored and Gyanesh Mishra committed Dec 2, 2023
1 parent e0592b7 commit 12844bb
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/build-soci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 12844bb

Please sign in to comment.