Commit c47cf42c authored by Richard Crosby's avatar Richard Crosby

feat: add jobs for registering graphs with apollo manager

parent 386a0910
Pipeline #24223 passed with stages
in 33 seconds
register_graphql_production:
stage: post-deploy
only:
- master
variables:
BBK_RUNTIME_ENVIRONMENT: production
ENGINE_API_KEY: ${ENGINE_API_KEY}
extends: .cache-pull-only
before_script:
- npm install -g apollo
script:
- apollo service:push --key="${ENGINE_API_KEY}" --serviceName="${CI_PROJECT_NAME}" --serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql" --endpoint="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql" --tag=${BBK_RUNTIME_ENVIRONMENT}
only:
- tags
register_graphql_staging:
stage: post-deploy
only:
- master
variables:
BBK_RUNTIME_ENVIRONMENT: staging
ENGINE_API_KEY: ${ENGINE_API_KEY}
extends: .cache-pull-only
before_script:
- npm install -g apollo
script:
- apollo service:push --key="${ENGINE_API_KEY}" --serviceName="${CI_PROJECT_NAME}" --serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql" --endpoint="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql" --tag=${BBK_RUNTIME_ENVIRONMENT}
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