Commit 1a0b75bc by Leonard Gram Committed by GitHub

build: deploys to gcp. (#13911)

parent e99c1b48
...@@ -319,16 +319,23 @@ jobs: ...@@ -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:
......
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