ci: enable CI for signpost.mareshq.com
This commit is contained in:
parent
dd75d3f55c
commit
7cde7fa8cf
3 changed files with 61 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ workflow:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
|
||||||
trigger:
|
trigger:singpost.cloud.mareshq.com:
|
||||||
stage: trigger
|
stage: trigger
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
|
|
@ -17,3 +17,16 @@ trigger:
|
||||||
trigger:
|
trigger:
|
||||||
include: sites/signpost.cloud.mareshq.com/.gitlab-ci.yml
|
include: sites/signpost.cloud.mareshq.com/.gitlab-ci.yml
|
||||||
strategy: depend
|
strategy: depend
|
||||||
|
|
||||||
|
trigger:singpost.mareshq.com:
|
||||||
|
stage: trigger
|
||||||
|
only:
|
||||||
|
changes:
|
||||||
|
- .gitlab-ci.yml
|
||||||
|
- sites/signpost.mareshq.com/**/*
|
||||||
|
- themes/signpost/**/*
|
||||||
|
- build/**/*
|
||||||
|
- deploy/**/*
|
||||||
|
trigger:
|
||||||
|
include: sites/signpost.mareshq.com/.gitlab-ci.yml
|
||||||
|
strategy: depend
|
||||||
|
|
|
||||||
29
sites/signpost.mareshq.com/.gitlab-ci.yml
Normal file
29
sites/signpost.mareshq.com/.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
default:
|
||||||
|
image: sikalabs/ci
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
variables:
|
||||||
|
IMAGE: $CI_REGISTRY_IMAGE/signpost.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=signpost.mareshq.com .
|
||||||
|
- docker push $IMAGE:$IMAGE_TAG
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- helm upgrade --install --namespace internal-static-sites -f ./sites/signpost.mareshq.com/helm-values.yaml --set image.tag=$IMAGE_TAG --set image.pullSecretBase64=$REGISTRY_PULL_SECRET_BASE64 signpost-mareshq-com ./deploy/charts/static-site
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
environment:
|
||||||
|
name: signpost-mareshq-com
|
||||||
|
url: https://signpost.mareshq.com
|
||||||
18
sites/signpost.mareshq.com/helm-values.yaml
Normal file
18
sites/signpost.mareshq.com/helm-values.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
image:
|
||||||
|
repository: registry.mareshq.com/mareshq/internal-static-sites/signpost.mareshq.com
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: nginx
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
kubernetes.io/tls-acme: 'true'
|
||||||
|
hosts:
|
||||||
|
- host: signpost.mareshq.com
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
tls:
|
||||||
|
- secretName: signpost-mareshq-com
|
||||||
|
hosts:
|
||||||
|
- signpost.mareshq.com
|
||||||
Reference in a new issue