Skip to content

Commit

Permalink
chore: use skopeo from rockcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume committed Jun 13, 2024
1 parent 0682927 commit 51fc6b7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,17 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install skopeo
- name: Install rockcraft
run: |
sudo snap install --devmode --channel edge skopeo
- uses: actions/download-artifact@v4
with:
name: rock
sudo snap install rockcraft --classic
- name: Import and push to github package
run: |
image_name="$(yq '.name' rockcraft.yaml)"
version="$(yq '.version' rockcraft.yaml)"
rock_file=$(ls *.rock | tail -n 1)
sudo skopeo \
sudo rockcraft.skopeo \
--insecure-policy \
copy \
oci-archive:"${rock_file}" \
Expand Down

0 comments on commit 51fc6b7

Please sign in to comment.