-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: hook up login-ui from device-flow branch
- Loading branch information
1 parent
57363cb
commit 7c336f4
Showing
6 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
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 | ||
|
||
sudo 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: identity-platform-login-ui | ||
|
||
base: bare | ||
build-base: [email protected] | ||
version: '0.11.3' # x-release-please-version | ||
summary: Canonical Identity platform login UI | ||
description: | | ||
This is the Canonical Identity platform login UI used for connecting | ||
Ory Kratos with Ory Hydra. | ||
license: Apache-2.0 | ||
|
||
platforms: | ||
amd64: | ||
|
||
services: | ||
login-ui: | ||
override: replace | ||
command: /usr/bin/identity-platform-login-ui | ||
startup: enabled | ||
|
||
parts: | ||
certificates: | ||
plugin: nil | ||
stage-packages: | ||
- ca-certificates | ||
|
||
go-build: | ||
plugin: go | ||
source: https://github.com/canonical/identity-platform-login-ui | ||
source-type: git | ||
source-branch: device-flow-poc | ||
build-snaps: | ||
- go/1.19/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 | ||
organize: | ||
opt/identity-platform-login-ui/bin/app: usr/bin/identity-platform-login-ui | ||
stage-packages: | ||
- base-files_var |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters