feat(sites): add infra.mareshq.com
This commit is contained in:
parent
4c8df2eb22
commit
4b658dd283
22 changed files with 504 additions and 0 deletions
29
sites/infra.mareshq.com/.gitlab-ci.yml
Normal file
29
sites/infra.mareshq.com/.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
default:
|
||||
image: sikalabs/ci
|
||||
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
IMAGE: $CI_REGISTRY_IMAGE/infra.mareshq.com
|
||||
IMAGE_TAG: $CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
|
||||
|
||||
build:
|
||||
stage: build
|
||||
before_script:
|
||||
- docker info
|
||||
script:
|
||||
- echo $CI_REGISTRY_PASSWORD | docker login --username $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
|
||||
- docker build --tag $IMAGE:$IMAGE_TAG --file ./build/Containerfile --build-arg SITE=infra.mareshq.com .
|
||||
- docker push $IMAGE:$IMAGE_TAG
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
script:
|
||||
- helm upgrade --install --namespace internal-static-sites -f ./sites/infra.mareshq.com/helm-values.yaml --set image.tag=$IMAGE_TAG --set image.pullSecretBase64=$REGISTRY_PULL_SECRET_BASE64 infra-mareshq-com ./deploy/charts/static-site
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
environment:
|
||||
name: infra-mareshq-com
|
||||
url: https://infra.mareshq.com
|
||||
Reference in a new issue