diff --git a/hack/login-ui/build.sh b/hack/login-ui/build.sh index 73ca91c0..f0ea24db 100755 --- a/hack/login-ui/build.sh +++ b/hack/login-ui/build.sh @@ -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 diff --git a/hack/login-ui/identity-platform-login-ui_0.12.0_amd64.rock b/hack/login-ui/identity-platform-login-ui_0.12.0_amd64.rock deleted file mode 100644 index d4892f1c..00000000 Binary files a/hack/login-ui/identity-platform-login-ui_0.12.0_amd64.rock and /dev/null differ diff --git a/hack/login-ui/rockcraft.yaml b/hack/login-ui/rockcraft.yaml index 32401624..6ace8ced 100644 --- a/hack/login-ui/rockcraft.yaml +++ b/hack/login-ui/rockcraft.yaml @@ -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: @@ -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 \ No newline at end of file + - base-files_var