qpa-client/.gitlab-ci.yml

29 lines
622 B
YAML
Raw Normal View History

2019-10-04 11:31:10 +02:00
stages:
- build
- release
build:
stage: build
2019-10-04 17:56:22 +02:00
image: node:10.16
2019-10-04 11:31:10 +02:00
artifacts:
paths:
- dist
expire_in: 1 week
script:
2019-10-04 17:56:22 +02:00
- curl -o- -L https://yarnpkg.com/install.sh | bash
2019-10-04 11:31:10 +02:00
- yarn
- yarn build
2019-08-01 11:01:05 +02:00
2019-10-04 17:24:13 +02:00
release:
stage: release
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
variables:
GOOGLE_APPLICATION_CREDENTIALS: /secret.json
script:
2019-10-05 10:26:23 +02:00
- cat $GCS_SERVICE_ACCOUNT_KEY > /secret.json
2019-10-04 17:24:13 +02:00
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination eu.gcr.io/qpa-staging-237606/web:$CI_COMMIT_TAG
only:
2019-08-01 10:37:54 +02:00
- tags