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
8db33661
Commit
8db33661
authored
Aug 17, 2021
by
Georgi Petkov
Browse files
chore: using npx to run apollo in register graphql job
parent
1e014136
Pipeline
#31348
passed with stages
in 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gitlab-ci/register-graphql.yml
View file @
8db33661
...
...
@@ -8,10 +8,11 @@ register_graphql_production:
APOLLO_KEY
:
${APOLLO_KEY}
dependencies
:
-
build
before_script
:
-
npm install -g apollo@2.32.1
# before_script:
# - npm i -g apollo
# - npm i -g graphql
script
:
-
apollo service:push --key="${APOLLO_KEY}"
-
npx
apollo service:push --key="${APOLLO_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}
...
...
@@ -26,10 +27,11 @@ register_graphql_staging:
CI_DEBUG_TRACE
:
"
true"
dependencies
:
-
build
before_script
:
-
npm install -g apollo@2.32.1
# before_script:
# - npm i -g apollo
# - npm i -g graphql
script
:
-
apollo service:push --key="${APOLLO_KEY}"
-
npx
apollo service:push --key="${APOLLO_KEY}"
--serviceName="${CI_PROJECT_NAME}"
--serviceRevision="${CI_COMMIT_REF_SLUG}"
--serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql"
...
...
Write
Preview
Markdown
is supported
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