feat(sites): add signpost.cloud.mareshq.com
This commit is contained in:
parent
fb80b39754
commit
194cb31dd2
19 changed files with 332 additions and 2 deletions
32
sites/signpost.cloud.mareshq.com/.gitlab-ci.yml
Normal file
32
sites/signpost.cloud.mareshq.com/.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
default:
|
||||
image: sikalabs/ci
|
||||
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
IMAGE: $CI_REGISTRY_IMAGE/signpost.cloud.mareshq.com
|
||||
IMAGE_TAG: $CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
|
||||
|
||||
build:
|
||||
stage: build
|
||||
image: sikalabs/ci-node
|
||||
before_script:
|
||||
- docker info
|
||||
script:
|
||||
- cd sites/signpost.cloud.mareshq.com
|
||||
- yarn install --frozen-lockfile
|
||||
- yarn build
|
||||
- docker build --tag $IMAGE:$IMAGE_TAG --file /build/Containerfile .
|
||||
- docker push $IMAGE:$IMAGE_TAG
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
script:
|
||||
- helm upgrade --install signpost-cloud-mareshq-com ./deploy/charts/static-site --namespace internal-static-sites -f ./sites/signpost.cloud.mareshq.com/helm-values.yaml --set image.tag=${CI_COMMIT_BRANCH}-${CI_COMMIT_SHORT_SHA}
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
environment:
|
||||
name: signpost-cloud-mareshq-com
|
||||
url: https://signpost.cloud.mareshq.com
|
||||
Reference in a new issue