The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grafana/wercker.yml

68 lines
1.7 KiB

box: wercker/golang
steps:
- wercker/npm-install@0.9.3
- wercker/step-grunt
- wercker/s3sync
build:
steps:
# Workspace
- setup-go-workspace
- script:
name: build setup
code: |
go run build.go setup
# Build the project
- script:
name: build
code: |
go run build.go clean test build
# frontend
- npm-install
- grunt:
tasks: release
# create packages
- script:
name: create packages
code: |
sudo gem install fpm
sudo apt-get update
sudo apt-get install -y rpm
go run build.go package
# save packages
- script:
name: copy output
code: |-
cp -r $WERCKER_SOURCE_DIR/dist/ $WERCKER_ROOT/
rsync -rv "$WERCKER_SOURCE_DIR/dist/" "$WERCKER_OUTPUT_DIR"
- s3sync:
key-id: $AWS_S3_KEY
key-secret: $AWS_S3_SECRET
bucket-url: $AWS_S3_BUCKET
source-dir: dist/
delete-removed: false
deploy:
steps:
- add-to-known_hosts:
hostname: play.grafana.org
- mktemp:
envvar: PRIVATEKEY_PATH
- create-file:
name: write key
filename: $PRIVATEKEY_PATH
content: $GRAFANA_PLAY_PRIVATE
overwrite: true
hide-from-log: true
- script:
name: transfer application
code: |
pwd
ls -la
scp -i $PRIVATEKEY_PATH -o StrictHostKeyChecking=no -o UserKnownHostsFile=no * deploy@play.grafana.org:/home/deploy/
- script:
name: deploy application
code: ssh -i $PRIVATEKEY_PATH -l deploy -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no play.grafana.org ./wercker_deploy.sh