32 lines
680 B
YAML
32 lines
680 B
YAML
stages:
|
|
- build
|
|
- release
|
|
|
|
build:
|
|
stage: build
|
|
image: node:10.16
|
|
artifacts:
|
|
paths:
|
|
- dist
|
|
expire_in: 1 week
|
|
script:
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
- yarn; yarn build
|
|
- ls dist/
|
|
- (cd dist; find .)
|
|
- (cd lib; find .)
|
|
|
|
release:
|
|
stage: release
|
|
image:
|
|
name: gcr.io/kaniko-project/executor:debug
|
|
entrypoint: [""]
|
|
variables:
|
|
GOOGLE_APPLICATION_CREDENTIALS: /secret.json
|
|
script:
|
|
- cat $GCS_SERVICE_ACCOUNT_KEY > /secret.json
|
|
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination eu.gcr.io/qpa-staging-237606/api:$CI_COMMIT_TAG
|
|
only:
|
|
- tags
|
|
|