Skip to content

Commit

Permalink
[MISC] Use skopeo builtin with rockcraft (#23)
Browse files Browse the repository at this point in the history
* fix: Use skopeo builtin with rockcraft

* fix: Use skopeo builtin in trivy job
  • Loading branch information
Batalex authored Jul 23, 2024
1 parent 551140c commit fbe3d50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,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 @@ -89,7 +86,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
6 changes: 3 additions & 3 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install skopeo
- name: Install dependencies
run: |
sudo snap install --devmode --channel edge skopeo
sudo snap install rockcraft --classic --edge
- uses: actions/download-artifact@v3
with:
name: charmed-kafka
- name: Import locally
run: |
sudo skopeo --insecure-policy copy \
sudo rockcraft.skopeo --insecure-policy copy \
oci-archive:${{ needs.build.outputs.rock }} \
docker-daemon:trivy/charmed-kafka:test
Expand Down

0 comments on commit fbe3d50

Please sign in to comment.