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

[MISC] Use skopeo built-in with rockcraft #5

Merged
merged 5 commits into from
Jun 21, 2024
Merged
Changes from 4 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
11 changes: 4 additions & 7 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 @@ -84,11 +81,11 @@ jobs:
TRACK=${{ needs.release_checks.outputs.track }}
if [ ! -z "$RISK" ] && [ "${RISK}" != "no-risk" ]; then TAG=${TRACK}_${RISK}; else TAG=${TRACK}; fi

IMAGE_NAME="ghcr.io/canonical/charmed-karapace"
IMAGE_NAME="ghcr.io/deusebio/charmed-karapace"
zmraul marked this conversation as resolved.
Show resolved Hide resolved

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
Loading