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 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/web:$CI_COMMIT_TAG only: - tags