Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DevOps
Project Templates
Commits
2a910326
Commit
2a910326
authored
Jan 10, 2021
by
Philip Paetz
Browse files
fix(CI): YAML formatting issues for multiline command
parent
9f067f66
Pipeline
#28834
passed with stages
in 20 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
gitlab-ci/build-image.yml
View file @
2a910326
...
...
@@ -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
gitlab-ci/production.yml
View file @
2a910326
...
...
@@ -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.
...
...
gitlab-ci/register-graphql.yml
View file @
2a910326
...
...
@@ -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}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment