-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af3de23
commit 66b027b
Showing
110 changed files
with
18,705 additions
and
11 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
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,84 @@ | ||
version: 2.1 | ||
jobs: | ||
test: | ||
docker: | ||
- image: circleci/node:16.13.1 | ||
working_directory: ~/app | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- kratos-selfservice-ui-node-{{ checksum "package-lock.json" }} | ||
- run: npm ci --legacy-peer-deps | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: kratos-selfservice-ui-node-{{ checksum "package-lock.json" }} | ||
- run: npm test | ||
|
||
build: | ||
docker: | ||
- image: circleci/node:16.13.1 | ||
working_directory: ~/app | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- kratos-selfservice-ui-node-{{ checksum "package-lock.json" }} | ||
- run: npm ci --legacy-peer-deps | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: kratos-selfservice-ui-node-{{ checksum "package-lock.json" }} | ||
- run: npm run build | ||
|
||
release: | ||
docker: | ||
- image: cimg/base:stable | ||
environment: | ||
DOCKER_BUILDKIT: 1 | ||
DOCKER_CLI_EXPERIMENTAL: enabled | ||
BUILDX_PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 | ||
working_directory: ~/app | ||
steps: | ||
- checkout | ||
- run: | ||
command: | | ||
echo 'export DOCKER_FULL_TAG=$(echo $CIRCLE_TAG | tr '+' '_')' >> $BASH_ENV | ||
echo 'export DOCKER_SHORT_TAG=$(echo $CIRCLE_TAG | cut -d '+' -f1)' >> $BASH_ENV | ||
./.circleci/release_name.bash | ||
source $BASH_ENV | ||
- setup_remote_docker | ||
- run: | ||
name: Set up Docker Buildx | ||
command: | | ||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | ||
docker buildx create --name multiarch-builder --use | ||
- run: | ||
docker login --username "$DOCKER_USERNAME" --password | ||
"$DOCKER_PASSWORD" | ||
- run: | ||
docker buildx build --platform $BUILDX_PLATFORMS -t | ||
oryd/kratos-selfservice-ui-node:latest -t | ||
oryd/kratos-selfservice-ui-node:$DOCKER_SHORT_TAG --push . | ||
|
||
workflows: | ||
tbr: | ||
jobs: | ||
- test: | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- build: | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- release: | ||
requires: | ||
- test | ||
- build | ||
filters: | ||
tags: | ||
only: /.*/ | ||
branches: | ||
ignore: /.*/ |
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,13 @@ | ||
#!/bin/bash | ||
|
||
release=$(curl -s "https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/releases") | ||
tag=$(echo ${release} | jq -r ".[0].tag_name") | ||
tag_name=$(echo ${release} | jq -r ".[0].name") | ||
|
||
if [[ -n "$tag_name" ]]; then | ||
echo "export RELEASE_NAME=$tag_name" >> $BASH_ENV | ||
elif [[ -n "$tag" ]]; then | ||
echo "export RELEASE_NAME=$tag" >> $BASH_ENV | ||
else | ||
echo "export RELEASE_NAME=$CIRCLE_SHA1" >> $BASH_ENV | ||
fi |
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,3 @@ | ||
node_modules/ | ||
lib/ | ||
.git |
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 @@ | ||
* @ory/maintainers |
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,8 @@ | ||
# AUTO-GENERATED, DO NOT EDIT! | ||
# Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/FUNDING.yml | ||
|
||
# These are supported funding model platforms | ||
|
||
# github: | ||
patreon: _ory | ||
open_collective: ory |
Oops, something went wrong.