Skip to content

Commit

Permalink
try
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 12844bb commit 033ebbc
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build-soci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,20 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}

- name: Build Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile # Path to your Dockerfile
push: false
tags: ${{ steps.meta.outputs.tags }}
outputs: type=oci,dest=/tmp/lorax-${{ steps.meta.outputs.version }}.tar
# - name: Build Docker image
# uses: docker/build-push-action@v2
# with:
# context: .
# file: ./Dockerfile # Path to your Dockerfile
# push: false
# tags: ${{ steps.meta.outputs.tags }}
# outputs: type=oci,dest=/tmp/lorax-${{ steps.meta.outputs.version }}.tar

- name: Import image in containerd
run: |
for tag in ${{ steps.meta.outputs.tags }}
tags=${{ steps.meta.outputs.tags }}
echo $tags
for tag in tags
do
sudo ctr i import --base-name ghcr.io/predibase/lorax:$tag --digests /tmp/lorax-${{ steps.meta.outputs.version }}.tar
done
Expand Down

0 comments on commit 033ebbc

Please sign in to comment.