Skip to content

Commit

Permalink
[MISC] Use skopeo built-in with rockcraft (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
deusebio authored Jun 21, 2024
1 parent 58ce86f commit e66af1b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install skopeo
run: |
sudo snap install --devmode --channel edge skopeo
- name: Install yq
- name: Install dependencies
run: |
sudo snap install yq
sudo snap install rockcraft --classic --edge
- uses: actions/download-artifact@v3
with:
Expand All @@ -88,7 +85,7 @@ jobs:

ROCK_FILE=${{ needs.build.outputs.rock }}

sudo skopeo --insecure-policy copy \
sudo rockcraft.skopeo --insecure-policy copy \
oci-archive:${ROCK_FILE} \
docker-daemon:${IMAGE_NAME}:${TAG}

Expand Down

0 comments on commit e66af1b

Please sign in to comment.