2019-07-26 15:42:07 +02:00
|
|
|
image: ubuntu:18.04
|
2018-05-18 11:43:44 +02:00
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
|
2018-05-18 12:40:21 +02:00
|
|
|
deploy_staging:
|
2018-05-18 11:43:44 +02:00
|
|
|
stage: deploy
|
2018-05-18 12:40:21 +02:00
|
|
|
environment: staging
|
2018-05-18 11:43:44 +02:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
script:
|
2019-07-26 15:42:07 +02:00
|
|
|
- apt-get update
|
2019-08-01 09:56:34 +02:00
|
|
|
- apt-get install -y nodejs docker
|
2019-08-01 10:02:19 +02:00
|
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
2019-07-26 15:32:11 +02:00
|
|
|
- (cd server; yarn build)
|
2019-08-01 09:53:33 +02:00
|
|
|
- docker build -t eu.gcr.io/qpa-staging-237606/qpa:$CI_COMMIT_TAG .
|
|
|
|
- docker push eu.gcr.io/qpa-staging-237606/qpa:$CI_COMMIT_TAG
|