Merge pull request #12180 from grafana/deploy
Propagate specific git-sha into tarball and docker builds
This commit is contained in:
+10
-5
@@ -183,16 +183,21 @@ jobs:
|
|||||||
command: 'sudo pip 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/master'
|
command: |
|
||||||
|
# Also
|
||||||
|
cp dist/grafana-latest.linux-x64.tar.gz dist/grafana-master-$(echo "${CIRCLE_SHA1}" | cut -b1-7).linux-x64.tar.gz
|
||||||
|
aws s3 sync ./dist s3://$BUCKET_NAME/master
|
||||||
- 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:
|
- run:
|
||||||
name: Trigger Docker build
|
name: Trigger Docker build
|
||||||
command: './scripts/trigger_docker_build.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}'
|
command: './scripts/trigger_docker_build.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN} master-$(echo "${CIRCLE_SHA1}" | cut -b1-7)'
|
||||||
- run:
|
- run:
|
||||||
name: Publish to Grafana.com
|
name: Publish to Grafana.com
|
||||||
command: './scripts/publish -apiKey ${GRAFANA_COM_API_KEY}'
|
command: |
|
||||||
|
rm dist/grafana-master-$(echo "${CIRCLE_SHA1}" | cut -b1-7).linux-x64.tar.gz
|
||||||
|
./scripts/publish -apiKey ${GRAFANA_COM_API_KEY}
|
||||||
|
|
||||||
deploy-release:
|
deploy-release:
|
||||||
docker:
|
docker:
|
||||||
@@ -241,8 +246,8 @@ workflows:
|
|||||||
- mysql-integration-test
|
- mysql-integration-test
|
||||||
- postgres-integration-test
|
- postgres-integration-test
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: master
|
only: master
|
||||||
release:
|
release:
|
||||||
jobs:
|
jobs:
|
||||||
- build-all:
|
- build-all:
|
||||||
|
|||||||
Reference in New Issue
Block a user