Newer
Older
- deps
- check
submodule_fetch:
stage: deps
script:
- chmod 600 .drawing-app-deploy.rsa
- git submodule sync --recursive
- GIT_SSH_COMMAND='ssh -i .drawing-app-deploy.rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git submodule update --init
artifacts:
paths:
- src/liowebrtc
- src/rtcpeerconnection
- src/signalbuddy
node_install:
stage: deps
script:
- npm ci --only=prod
artifacts:
paths:
- node_modules
dev_node_install:
stage: deps
script:
- npm ci
artifacts:
paths:
- node_modules
stage: check
dependencies:
- dev_node_install
- npx prettier --ignore-path .gitignore --check "**/*.{html,js,json,md}"
lint:
stage: check
dependencies:
- dev_node_install
script:
- npx eslint --ignore-path .gitignore "**/*.js"
dependencies:
- dev_node_install
deploy:
stage: deploy
dependencies:
- node_install
- backend_build
script:
- apt-get update -qq && apt-get install -qq zip
- zip -r application.zip * .[^.]*
- curl -X POST -u "$DEPLOYMENT_USERNAME:$DEPLOYMENT_PASSWORD" $DEPLOYMENT_ENDPOINT -T application.zip