Initial commit
This commit is contained in:
commit
7724a7614e
24 changed files with 1653 additions and 0 deletions
34
app/.gitlab-ci.yml
Normal file
34
app/.gitlab-ci.yml
Normal 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
|
||||
|
||||
Reference in a new issue