Skip to content

Commit

Permalink
Merge pull request #69 from canonical/IAM-1033-update-rock-img
Browse files Browse the repository at this point in the history
chore: update rockcraft image and fix publish action
  • Loading branch information
natalian98 authored Sep 18, 2024
2 parents 64036e4 + 0530327 commit 3fc8f89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Install 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 +35,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
6 changes: 3 additions & 3 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: oathkeeper
base: bare
build-base: ubuntu:22.04
build-base: ubuntu@22.04
version: "0.40.6"
summary: Ory Oathkeeper
description: |
Expand All @@ -25,9 +25,9 @@ parts:
oathkeeper:
plugin: go
build-snaps:
- go/1.20/stable
- go/1.21/stable
build-environment:
- CGO_ENABLED: 0
- CGO_ENABLED: "0"
override-build: |
src_config_path="github.com/ory/oathkeeper"
build_ver="${src_config_path}/x.Version"
Expand Down

0 comments on commit 3fc8f89

Please sign in to comment.