1
0
Fork 0

feat(sites): add signpost.cloud.mareshq.com

This commit is contained in:
Vojtěch Mareš 2022-08-20 19:03:25 +02:00
parent fb80b39754
commit 194cb31dd2
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
19 changed files with 332 additions and 2 deletions

View 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