Skip to content

Commit

Permalink
import
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 da46f5a commit 9389eff
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/build-soci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,33 +90,34 @@ jobs:
echo $tags
echo $short_sha
sudo ctr i import --digests /tmp/lorax-${{ steps.meta.outputs.version }}.tar
sudo ctr i ls
# for tag in $tags
# do
# echo "Importing $tag into containerd"
# sudo ctr i import --digests /tmp/lorax-${{ steps.meta.outputs.version }}.tar
# done
# rm -rf /tmp/lorax-${{ steps.meta.outputs.version }}.tar
- name: Push image with containerd
env:
tags: ${{ steps.meta.outputs.tags }}
short_sha: ${{ steps.vars.outputs.sha_short }}
run: |
for tag in $tags
do
echo "Pushing $tag to GHCR"
sudo ctr i push --user "${{ github.repository_owner }}:${{ secrets.GHCR_PAT }}" $tag
done
# - name: Push image with containerd
# env:
# tags: ${{ steps.meta.outputs.tags }}
# short_sha: ${{ steps.vars.outputs.sha_short }}
# run: |
# for tag in $tags
# do
# echo "Pushing $tag to GHCR"
# sudo ctr i push --user "${{ github.repository_owner }}:${{ secrets.GHCR_PAT }}" $tag
# done

- name: Create and push soci index
env:
tags: ${{ steps.meta.outputs.tags }}
short_sha: ${{ steps.vars.outputs.sha_short }}
run: |
for tag in $tags
do
echo "Creating soci index for $tag"
sudo soci create $tag
echo "Pushing soci index for $tag"
sudo soci push --user ${{ github.repository_owner }}:${{ secrets.GHCR_PAT }} $tag
done
# - name: Create and push soci index
# env:
# tags: ${{ steps.meta.outputs.tags }}
# short_sha: ${{ steps.vars.outputs.sha_short }}
# run: |
# for tag in $tags
# do
# echo "Creating soci index for $tag"
# sudo soci create $tag
# echo "Pushing soci index for $tag"
# sudo soci push --user ${{ github.repository_owner }}:${{ secrets.GHCR_PAT }} $tag
# done

0 comments on commit 9389eff

Please sign in to comment.