mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
build: deploys to gcp. (#13911)
This commit is contained in:
parent
e99c1b4838
commit
1a0b75bc44
@ -319,16 +319,23 @@ jobs:
|
|||||||
|
|
||||||
deploy-enterprise-master:
|
deploy-enterprise-master:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/python:2.7-stretch
|
- image: grafana/grafana-ci-deploy:1.0.0
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
- run:
|
- run:
|
||||||
name: install awscli
|
name: gcp credentials
|
||||||
command: 'sudo pip install awscli'
|
command: 'echo ${GCP_GRAFANA_UPLOAD_KEY} > /tmp/gcpkey.json'
|
||||||
|
- run:
|
||||||
|
name: sign in to gcp
|
||||||
|
command: '/opt/google-cloud-sdk/bin/gcloud auth activate-service-account --key-file=/tmp/gcpkey.json'
|
||||||
- run:
|
- run:
|
||||||
name: deploy to s3
|
name: deploy to s3
|
||||||
command: 'aws s3 sync ./enterprise-dist s3://$ENTERPRISE_BUCKET_NAME/master'
|
command: 'aws s3 sync ./enterprise-dist s3://$ENTERPRISE_BUCKET_NAME/master'
|
||||||
|
- run:
|
||||||
|
name: deploy to gcp
|
||||||
|
command: '/opt/google-cloud-sdk/bin/gsutil cp ./enterprise-dist/* gs://grafana-downloads/enterprise/master'
|
||||||
|
|
||||||
|
|
||||||
deploy-enterprise-release:
|
deploy-enterprise-release:
|
||||||
docker:
|
docker:
|
||||||
|
Loading…
Reference in New Issue
Block a user