Verified Commit 837990cf authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Add GitLab CI script

parent d30fcea2
Pipeline #57951 failed with stages
in 9 minutes and 57 seconds
stages:
- test
- build
- deploy
eslint:
stage: test
image: node:13
before_script:
- npm install
script:
- npm run eslint
build_master:
stage: build
image: docker:stable
variables:
GIT_SUBMODULE_STRATEGY: normal
DOCKER_DRIVER: overlay2
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --cache-from "$CI_REGISTRY_IMAGE:latest" --pull -t "$CI_REGISTRY_IMAGE:latest" ./
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
- master
environment:
name: production
url: https://amiv.ethz.ch
build_dev:
stage: build
image: docker:stable
variables:
GIT_SUBMODULE_STRATEGY: normal
DOCKER_DRIVER: overlay2
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --cache-from "$CI_REGISTRY_IMAGE:dev" --build-arg NPM_BUILD_COMMAND=build-dev --pull -t "$CI_REGISTRY_IMAGE:dev" ./
- docker push "$CI_REGISTRY_IMAGE:dev"
environment:
name: development
url: https://web-dev.amiv.ethz.ch
deploy_dev:
stage: deploy
image: amiveth/service-update-helper
before_script:
- export CI_DEPLOY_SERVICE="${CI_DEPLOY_SERVICE}-dev"
script:
- /update.py
allow_failure: true
deploy_cluster:
stage: deploy
image: amiveth/service-update-helper
script:
- /update.py
only:
- master
deploy_pazuzu:
stage: deploy
image: amiveth/service-update-helper
before_script:
- export CI_DEPLOY_URL="$CI_DEPLOY_URL_PAZUZU"
script:
- /update.py
only:
- master
......@@ -7366,9 +7366,9 @@
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="
},
"esquery": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz",
"integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==",
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/esquery/-/esquery-1.1.0.tgz",
"integrity": "sha512-MxYW9xKmROWF672KqjO75sszsA8Mxhw06YFeS5VHlB98KDHbOSurm3ArsjO60Eaf3QmGMCP1yn+0JQkNLo/97Q==",
"requires": {
"estraverse": "^4.0.0"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment