Skip to content

Commit

Permalink
wjhat
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 2133b06 commit e0265d7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/build-soci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,26 @@ jobs:
echo $tags
for tag in $tags
do
sudo ctr i import --base-name $tag --digests /tmp/lorax-${{ steps.meta.outputs.version }}.tar
echo $tag
# sudo ctr i import --base-name $tag --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 }}
run: |
for tag in $tags
do
sudo ctr i push --user "${{ github.repository_owner }}:${{ secrets.GHCR_PAT }}" $tag
done
# - name: Push image with containerd
# env:
# tags: ${{ steps.meta.outputs.tags }}
# run: |
# for tag in $tags
# do
# 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 }}
run: |
for tag in $tags
do
sudo soci create $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 }}
# run: |
# for tag in $tags
# do
# sudo soci create $tag
# sudo soci push --user ${{ github.repository_owner }}:${{ secrets.GHCR_PAT }} $tag
# done
26 changes: 13 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:
haskell: true
large-packages: false
swap-storage: true

- name: Set up Docker Buildx
uses: docker/[email protected]

- name: Set up containerd for ubuntu
uses: crazy-max/[email protected]

- name: Install soci
uses: lerentis/[email protected]
Expand All @@ -45,12 +51,6 @@ jobs:

- name: Set up QEMU
uses: docker/[email protected]

- name: Set up Docker Buildx
uses: docker/[email protected]

- name: Set up containerd for ubuntu
uses: crazy-max/[email protected]

- name: Docker meta
id: meta
Expand All @@ -64,13 +64,6 @@ jobs:
type=sha,prefix=,suffix=,format=short
type=raw,value=latest
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}

- name: Build Docker image
uses: docker/build-push-action@v2
with:
Expand All @@ -91,6 +84,13 @@ jobs:
done
rm -rf /tmp/lorax-${{ steps.meta.outputs.version }}.tar
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}

- name: Push image with containerd
env:
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit e0265d7

Please sign in to comment.