mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
build: deploys to gcp.
This commit is contained in:
parent
1a0b75bc44
commit
4954a49da9
@ -334,31 +334,34 @@ jobs:
|
|||||||
command: 'aws s3 sync ./enterprise-dist s3://$ENTERPRISE_BUCKET_NAME/master'
|
command: 'aws s3 sync ./enterprise-dist s3://$ENTERPRISE_BUCKET_NAME/master'
|
||||||
- run:
|
- run:
|
||||||
name: deploy to gcp
|
name: deploy to gcp
|
||||||
command: '/opt/google-cloud-sdk/bin/gsutil cp ./enterprise-dist/* gs://grafana-downloads/enterprise/master'
|
command: '/opt/google-cloud-sdk/bin/gsutil cp ./enterprise-dist/* gs://$GCP_BUCKET_NAME/enterprise/master'
|
||||||
|
|
||||||
|
|
||||||
deploy-enterprise-release:
|
deploy-enterprise-release:
|
||||||
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:
|
- run:
|
||||||
name: deploy to s3
|
name: sign in to gcp
|
||||||
command: 'aws s3 sync ./enterprise-dist s3://$ENTERPRISE_BUCKET_NAME/release'
|
command: '/opt/google-cloud-sdk/bin/gcloud auth activate-service-account --key-file=/tmp/gcpkey.json'
|
||||||
|
- run:
|
||||||
|
name: deploy to s3
|
||||||
|
command: 'aws s3 sync ./enterprise-dist s3://$ENTERPRISE_BUCKET_NAME/release'
|
||||||
|
- run:
|
||||||
|
name: deploy to gcp
|
||||||
|
command: '/opt/google-cloud-sdk/bin/gsutil cp ./enterprise-dist/* gs://$GCP_BUCKET_NAME/enterprise/release'
|
||||||
|
|
||||||
deploy-master:
|
deploy-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:
|
|
||||||
name: install awscli
|
|
||||||
command: 'sudo pip install awscli'
|
|
||||||
- run:
|
- run:
|
||||||
name: deploy to s3
|
name: deploy to s3
|
||||||
command: |
|
command: |
|
||||||
@ -368,6 +371,9 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Trigger Windows build
|
name: Trigger Windows build
|
||||||
command: './scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN} ${CIRCLE_SHA1} master'
|
command: './scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN} ${CIRCLE_SHA1} master'
|
||||||
|
- run:
|
||||||
|
name: deploy to gcp
|
||||||
|
command: '/opt/google-cloud-sdk/bin/gsutil cp ./dist/* gs://$GCP_BUCKET_NAME/oss/master'
|
||||||
- run:
|
- run:
|
||||||
name: Publish to Grafana.com
|
name: Publish to Grafana.com
|
||||||
command: |
|
command: |
|
||||||
@ -376,16 +382,16 @@ jobs:
|
|||||||
|
|
||||||
deploy-release:
|
deploy-release:
|
||||||
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:
|
|
||||||
name: install awscli
|
|
||||||
command: 'sudo pip install awscli'
|
|
||||||
- run:
|
- run:
|
||||||
name: deploy to s3
|
name: deploy to s3
|
||||||
command: 'aws s3 sync ./dist s3://$BUCKET_NAME/release'
|
command: 'aws s3 sync ./dist s3://$BUCKET_NAME/release'
|
||||||
|
- run:
|
||||||
|
name: deploy to gcp
|
||||||
|
command: '/opt/google-cloud-sdk/bin/gsutil cp ./dist/* gs://R/oss/release'
|
||||||
- run:
|
- run:
|
||||||
name: Deploy to Grafana.com
|
name: Deploy to Grafana.com
|
||||||
command: './scripts/build/publish.sh'
|
command: './scripts/build/publish.sh'
|
||||||
|
Loading…
Reference in New Issue
Block a user