Skip to content

Commit

Permalink
fix: update rockcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
nsklikas authored and shipperizer committed Apr 5, 2024
1 parent 43943f3 commit a8b1268
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions hack/login-ui/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

set -x
# script requires the availability of rockcraft, skopeo, yq and docker in the host system
# it also requires sudo permissions to run skopeo

# export version=$(yq -r '.version' rockcraft.yaml)
# rockcraft pack -v
export version=$(yq -r '.version' rockcraft.yaml)
rockcraft pack -v

sudo skopeo --insecure-policy copy "oci-archive:identity-platform-login-ui_$(yq -r '.version' rockcraft.yaml)_amd64.rock" docker-daemon:$IMAGE
skopeo --insecure-policy copy "oci-archive:identity-platform-login-ui_$(yq -r '.version' rockcraft.yaml)_amd64.rock" docker-daemon:$IMAGE

docker push $IMAGE
Binary file not shown.
10 changes: 5 additions & 5 deletions hack/login-ui/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ platforms:
services:
login-ui:
override: replace
command: /usr/bin/identity-platform-login-ui
command: /usr/bin/identity-platform-login-ui serve
startup: enabled

parts:
Expand All @@ -28,17 +28,17 @@ parts:
plugin: go
source: https://github.com/canonical/identity-platform-login-ui
source-type: git
source-branch: device-flow-poc
source-branch: IAM-736
build-snaps:
- go/1.19/stable
- go/1.21/stable
- node/18/stable
build-packages:
- make
- git
override-build: |
make npm-build build
install -D -m755 cmd/app ${CRAFT_PART_INSTALL}/opt/identity-platform-login-ui/bin/app
install -D -m755 app ${CRAFT_PART_INSTALL}/opt/identity-platform-login-ui/bin/app
organize:
opt/identity-platform-login-ui/bin/app: usr/bin/identity-platform-login-ui
stage-packages:
- base-files_var
- base-files_var

0 comments on commit a8b1268

Please sign in to comment.