Commit aea68fca authored by Georgi Petkov's avatar Georgi Petkov
Browse files

chore: splitting document-service register-graphql configuration

parent a043c851
Pipeline #32279 canceled with stages
in 11 seconds
register_graphql_production:
stage: post-deploy
variables:
NODE_ENV: production
dependencies:
- build
before_script:
- npm i -g apollo
- npm i -g graphql
script:
- apollo service:push --key="${APOLLO_KEY}"
--serviceName="${CI_PROJECT_NAME}" --serviceRevision="${CI_COMMIT_TAG}"
--serviceURL="http://${CI_PROJECT_NAME}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql"
--localSchemaFile=src/schema.gql --tag=${NODE_ENV}
only:
- tags
register_graphql_staging:
stage: post-deploy
variables:
NODE_ENV: staging
extends:
- .except-ci-release
dependencies:
- build
before_script:
- npm i -g apollo
- npm i -g graphql
script:
- echo "http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql"
- 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"
--localSchemaFile=src/schema.gql --tag=${NODE_ENV}
only:
- master
Markdown is supported
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