Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix publish workflow #48

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install skopeo
# Use the rockcraft snap to get skopeo because the snap and the apt package on the ubuntu
# archives are very old. Only rockcraft=latest/edge has a newer skopeo version
# TODO(nsklikas): Either use rockcraft=latest/stable or install skopeo from apt when one
# of them is updated
- name: Install Rockcraft to get skopeo
run: |
sudo snap install --devmode --channel edge skopeo
sudo snap install --classic --channel latest/edge rockcraft

- name: Install yq
run: |
Expand All @@ -35,7 +39,7 @@ jobs:
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
Loading