mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ci: publishes grafana enterprise to s3.
This commit is contained in:
parent
6286c31d4b
commit
8d6797c367
@ -160,7 +160,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: build and package grafana
|
name: build, test and package grafana enterprise
|
||||||
command: './scripts/build/build_enterprise.sh'
|
command: './scripts/build/build_enterprise.sh'
|
||||||
- run:
|
- run:
|
||||||
name: sign packages
|
name: sign packages
|
||||||
@ -168,6 +168,26 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: sha-sum packages
|
name: sha-sum packages
|
||||||
command: 'go run build.go sha-dist'
|
command: 'go run build.go sha-dist'
|
||||||
|
-run:
|
||||||
|
name: move enterprise packages into their own folder
|
||||||
|
command: 'mv dist enterprise-dist'
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: .
|
||||||
|
paths:
|
||||||
|
- enterprise-dist/grafana*
|
||||||
|
|
||||||
|
deploy-enterprise-master:
|
||||||
|
docker:
|
||||||
|
- image: circleci/python:2.7-stretch
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: .
|
||||||
|
- run:
|
||||||
|
name: install awscli
|
||||||
|
command: 'sudo pip install awscli'
|
||||||
|
- run:
|
||||||
|
name: deploy to s3
|
||||||
|
command: 'aws s3 sync ./enterprise-dist s3://$ENTERPRISE_BUCKET_NAME/master'
|
||||||
|
|
||||||
deploy-master:
|
deploy-master:
|
||||||
docker:
|
docker:
|
||||||
@ -247,6 +267,20 @@ workflows:
|
|||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: master
|
only: master
|
||||||
|
- deploy-enterprise-master:
|
||||||
|
requires:
|
||||||
|
- build-all
|
||||||
|
- test-backend
|
||||||
|
- test-frontend
|
||||||
|
- codespell
|
||||||
|
- gometalinter
|
||||||
|
- mysql-integration-test
|
||||||
|
- postgres-integration-test
|
||||||
|
- build-enterprise
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only: master
|
||||||
|
|
||||||
release:
|
release:
|
||||||
jobs:
|
jobs:
|
||||||
- build-all:
|
- build-all:
|
||||||
|
Loading…
Reference in New Issue
Block a user