From 29fafb5ebd80590a72be849fe1fad503c6427f74 Mon Sep 17 00:00:00 2001 From: Nikos Date: Tue, 23 Jul 2024 13:31:58 +0300 Subject: [PATCH] ci: fix publish workflow --- .github/workflows/publish.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 651d10bc..abaaa4a2 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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: | @@ -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}" \