antho1404
10/25/2017, 11:12 AM--target
option
I’m using Gitlab and .gitlab-ci.yml
with the following config
deploy_graphcool:
stage: deploy
script:
- 'printf "platformToken: >-\n $GC_AUTH_TOKEN" > $CI_PROJECT_DIR/.graphcoolrc'
- npm run gc -- deploy --target prod
And my log from the CI ask me to choose
> gc "deploy" "--target" "prod"
? Please choose the cluster you want to deploy to (Use arrow keys)
Shared Clusters:
❯ shared-eu-west-1
shared-ap-northeast-1
shared-us-west-2
Local (docker):
local
nikolasburk
.graphcoolrc
looks like?antho1404
10/25/2017, 11:17 AM>>
instead of >
maybe this will fix it, I didn’t realized it was the same file in the CI and not like the one in the project and the one int the HOME
dirnikolasburk
--target prod
you need to provide a .graphcoolrc
that references the prod
target which could looks as follows:
targets:
default: propd
prod: shared-us-west-2/cj8n7um5800ot0167tzrqj5r9
antho1404
10/25/2017, 11:18 AMnikolasburk
antho1404
10/25/2017, 11:19 AMnikolasburk
antho1404
10/25/2017, 11:19 AMantho1404
10/25/2017, 11:19 AMantho1404
10/25/2017, 11:19 AMnikolasburk
nikolasburk
antho1404
10/25/2017, 11:20 AMgc "deploy" "--target" "dev"
▸ Could not find cluster local defined for target local in
▸ /builds/etherstellar/functions/.graphcoolrc.
▸ Please run graphcool local up to start the local cluster.
antho1404
10/25/2017, 11:20 AMantho1404
10/25/2017, 11:21 AM.gitlab-ci.yml
deploy_graphcool_staging:
stage: deploy
script:
- 'printf "platformToken: >-\n $GC_AUTH_TOKEN" >> $CI_PROJECT_DIR/.graphcoolrc'
- npm run gc -- deploy --target dev
antho1404
10/25/2017, 11:22 AM