Commit 2a910326 authored by Philip Paetz's avatar Philip Paetz
Browse files

fix(CI): YAML formatting issues for multiline command

parent 9f067f66
Pipeline #28834 passed with stages
in 20 seconds
......@@ -10,17 +10,12 @@ build_image:
dependencies:
- build
script:
- >
docker login $CI_REGISTRY
--username gitlab-ci-token
--password $CI_BUILD_TOKEN
- docker login --username gitlab-ci-token --password $CI_BUILD_TOKEN
$CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG || true
- >
docker build .
--cache-from $CI_REGISTRY_IMAGE:$TAG
--tag $CI_REGISTRY_IMAGE:$TAG
--build-arg NODE_ENV=${NODE_ENV}
--build-arg COMMIT_SHA=$CI_COMMIT_SHORT_SHA
- docker build . --cache-from $CI_REGISTRY_IMAGE:$TAG --tag
$CI_REGISTRY_IMAGE:$TAG --build-arg NODE_ENV=${NODE_ENV} --build-arg
COMMIT_SHA=$CI_COMMIT_SHORT_SHA
- docker push $CI_REGISTRY_IMAGE:$TAG
tags:
- docker
......@@ -13,10 +13,8 @@ tag:
- docker
extends: .skip-artifacts
script:
- >
docker login $CI_REGISTRY
--username gitlab-ci-token
--password $CI_BUILD_TOKEN
- docker login $CI_REGISTRY --username gitlab-ci-token --password
$CI_BUILD_TOKEN
- docker pull $CI_REGISTRY_IMAGE:latest
# if the branch is master, use the latest tag. When the repository is tagged (git tag),
# the docker image tag should reflect that.
......
......@@ -11,14 +11,10 @@ register_graphql_production:
before_script:
- npm install -g apollo
script:
- >
apollo service:push
--key="${ENGINE_API_KEY}"
--serviceName="${CI_PROJECT_NAME}"
--serviceRevision="${CI_COMMIT_TAG}"
--serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql"
--localSchemaFile=src/schema.gql
--tag=${NODE_ENV}
- apollo service:push --key="${ENGINE_API_KEY}"
--serviceName="${CI_PROJECT_NAME}" --serviceRevision="${CI_COMMIT_TAG}"
--serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql"
--localSchemaFile=src/schema.gql --tag=${NODE_ENV}
register_graphql_staging:
stage: post-deploy
......@@ -32,10 +28,8 @@ register_graphql_staging:
before_script:
- npm install -g apollo
script:
- >
apollo service:push --key="${ENGINE_API_KEY}"
--serviceName="${CI_PROJECT_NAME}"
--serviceRevision="${CI_COMMIT_REF_SLUG}"
--serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql"
--localSchemaFile=src/schema.gql
--tag=${NODE_ENV}
- apollo service:push --key="${ENGINE_API_KEY}"
--serviceName="${CI_PROJECT_NAME}"
--serviceRevision="${CI_COMMIT_REF_SLUG}"
--serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql"
--localSchemaFile=src/schema.gql --tag=${NODE_ENV}
Supports Markdown
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