Add GitLab CI config

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2022-04-21 08:38:02 +00:00
parent fdd3a14bba
commit b21e860247
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,3 @@
include:
- local: .gitlab/ci/00-global.gitlab-ci.yml
- local: .gitlab/ci/10-deploy-dev.gitlab-ci.yml

View File

@ -0,0 +1,16 @@
image:
entrypoint:
- /bin/sh
name: node:16-alpine
stages:
- test
- deploy
default:
before_script:
- apk add bash coreutils
- echo WORKSPACE_PATH$PWD | tee ~/.librc >> /dev/null
- echo CREATED_AT=1650520343 | tee -a ~/.librc >> /dev/null
- echo $STDLIBRC | base64 -d | tee -a ~/.librc >> /dev/null
- npm i

View File

@ -0,0 +1,11 @@
deploy:dev:
stage: deploy
environment:
name: development
url: https://dev--rtapp-verify-backend.recaptime.autocode.gg
script:
- npm run deploy:dev
rules:
- if: $CI_COMMIT_BRANCH == "main"
- if: $CI_COMMIT_BRANCH != "main"
when: never