Commit e0c0ae4f authored by Philip Paetz's avatar Philip Paetz
Browse files

fix(CI): prevent redundant running of register-graphql tasks during release pipelines

parent 6a5ac721
Pipeline #31912 passed with stages
in 23 seconds
register_graphql_production:
stage: post-deploy
only:
- master
- tags
variables:
NODE_ENV: production
# APOLLO_KEY: ${APOLLO_KEY}
dependencies:
- build
before_script:
......@@ -16,14 +12,13 @@ register_graphql_production:
--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}
only:
- tags
register_graphql_staging:
stage: post-deploy
only:
- master
variables:
NODE_ENV: staging
# APOLLO_KEY: ${APOLLO_KEY}
dependencies:
- build
before_script:
......@@ -35,3 +30,5 @@ register_graphql_staging:
--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
\ No newline at end of file
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