mirror of
https://github.com/offen/website.git
synced 2024-11-22 09:00:28 +01:00
remove KMS
This commit is contained in:
parent
8299d74532
commit
45c9b104f5
@ -3,7 +3,6 @@ version: 2
|
|||||||
production_env: &production_env
|
production_env: &production_env
|
||||||
environment:
|
environment:
|
||||||
- SERVER_HOST=https://server-alpha.offen.dev
|
- SERVER_HOST=https://server-alpha.offen.dev
|
||||||
- KMS_HOST=https://kms-alpha.offen.dev
|
|
||||||
- SCRIPT_HOST=https://script-alpha.offen.dev
|
- SCRIPT_HOST=https://script-alpha.offen.dev
|
||||||
- AUDITORIUM_HOST=https://auditorium-alpha.offen.dev
|
- AUDITORIUM_HOST=https://auditorium-alpha.offen.dev
|
||||||
- VAULT_HOST=https://vault-alpha.offen.dev
|
- VAULT_HOST=https://vault-alpha.offen.dev
|
||||||
@ -15,7 +14,6 @@ production_env: &production_env
|
|||||||
deploy_preconditions: &deploy_preconditions
|
deploy_preconditions: &deploy_preconditions
|
||||||
requires:
|
requires:
|
||||||
- server
|
- server
|
||||||
- kms
|
|
||||||
- vault
|
- vault
|
||||||
- script
|
- script
|
||||||
- auditorium
|
- auditorium
|
||||||
@ -32,31 +30,6 @@ build_preconditions: &build_preconditions
|
|||||||
ignore: gh-pages
|
ignore: gh-pages
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
kms:
|
|
||||||
docker:
|
|
||||||
- image: circleci/golang:1.12
|
|
||||||
environment:
|
|
||||||
- PORT=8081
|
|
||||||
working_directory: ~/offen/kms
|
|
||||||
steps:
|
|
||||||
- checkout:
|
|
||||||
path: ~/offen
|
|
||||||
- restore_cache:
|
|
||||||
key: offen-kms-{{ checksum "go.mod" }}
|
|
||||||
- run:
|
|
||||||
name: Download modules
|
|
||||||
command: go mod download
|
|
||||||
- save_cache:
|
|
||||||
paths:
|
|
||||||
- /go/pkg/mod
|
|
||||||
key: offen-kms-{{ checksum "go.mod" }}
|
|
||||||
- run:
|
|
||||||
name: Generate one-off key file
|
|
||||||
command: make bootstrap
|
|
||||||
- run:
|
|
||||||
name: Run tests
|
|
||||||
command: make test-ci
|
|
||||||
|
|
||||||
server:
|
server:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.12
|
- image: circleci/golang:1.12
|
||||||
@ -297,12 +270,6 @@ jobs:
|
|||||||
name: Manually clear go cache
|
name: Manually clear go cache
|
||||||
command: sudo rm -rf /go/pkg/mod
|
command: sudo rm -rf /go/pkg/mod
|
||||||
|
|
||||||
- restore_cache:
|
|
||||||
key: offen-kms-{{ checksum "kms/go.mod" }}
|
|
||||||
- run:
|
|
||||||
name: Build kms service
|
|
||||||
working_directory: ~/offen/kms
|
|
||||||
command: make build
|
|
||||||
- run:
|
- run:
|
||||||
name: Manually clear go cache
|
name: Manually clear go cache
|
||||||
command: sudo rm -rf /go/pkg/mod
|
command: sudo rm -rf /go/pkg/mod
|
||||||
@ -321,8 +288,6 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
echo "Deploying server ..."
|
echo "Deploying server ..."
|
||||||
$(npm bin)/sls deploy --config server/serverless.yml
|
$(npm bin)/sls deploy --config server/serverless.yml
|
||||||
echo "Deploying kms ..."
|
|
||||||
$(npm bin)/sls deploy --config kms/serverless.yml
|
|
||||||
|
|
||||||
deploy_node:
|
deploy_node:
|
||||||
docker:
|
docker:
|
||||||
@ -437,8 +402,6 @@ workflows:
|
|||||||
jobs:
|
jobs:
|
||||||
- server:
|
- server:
|
||||||
<<: *build_preconditions
|
<<: *build_preconditions
|
||||||
- kms:
|
|
||||||
<<: *build_preconditions
|
|
||||||
- vault:
|
- vault:
|
||||||
<<: *build_preconditions
|
<<: *build_preconditions
|
||||||
- script:
|
- script:
|
||||||
|
Loading…
Reference in New Issue
Block a user