1
0
Fork 0

Initial commit

This commit is contained in:
Vojtěch Mareš 2023-09-26 21:43:36 +00:00
commit 7724a7614e
24 changed files with 1653 additions and 0 deletions

34
app/.gitlab-ci.yml Normal file
View file

@ -0,0 +1,34 @@
default:
image: sikalabs/ci
variables:
IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
before_script:
- cd app
stages:
- build
- deploy
docker:build:
stage: build
script:
- echo $CI_REGISTRY_PASSWORD | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
- docker build -t $IMAGE .
- docker push $IMAGE
deploy:
stage: deploy
environment:
name: live
url: https://sentry-demo.trz.sikademo.com
script:
- helm upgrade --install sentry-demo
./helm
--wait
--set image=$IMAGE
--set host=sentry-demo.trz.sikademo.com
--set dockerRegistry=$CI_REGISTRY
--set dockerRegistryAuth=$DOCKER_REGISTRY_AUTH