1
0
Fork 0
This repository has been archived on 2025-09-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-internal-static-sites/sites/signpost.cloud.mareshq.com/.gitlab-ci.yml

29 lines
988 B
YAML

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
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.cloud.mareshq.com .
- 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} --set image.pullSecretBase64=$REGISTRY_PULL_SECRET_BASE64
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
environment:
name: signpost-cloud-mareshq-com
url: https://signpost.cloud.mareshq.com