mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-01-01 00:47:30 -08:00
Merge pull request #301 from prometheus/sdurrheimer-promu-improvements
Update promu config file following recent changes + use the golang-bu…
This commit is contained in:
commit
3fb4d99051
|
@ -1,3 +1,5 @@
|
||||||
|
go:
|
||||||
|
cgo: true
|
||||||
repository:
|
repository:
|
||||||
path: github.com/prometheus/node_exporter
|
path: github.com/prometheus/node_exporter
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -2,7 +2,7 @@ machine:
|
||||||
environment:
|
environment:
|
||||||
DOCKER_IMAGE_NAME: prom/node-exporter
|
DOCKER_IMAGE_NAME: prom/node-exporter
|
||||||
QUAY_IMAGE_NAME: quay.io/prometheus/node-exporter
|
QUAY_IMAGE_NAME: quay.io/prometheus/node-exporter
|
||||||
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.6-main
|
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.6-base
|
||||||
REPO_PATH: github.com/prometheus/node_exporter
|
REPO_PATH: github.com/prometheus/node_exporter
|
||||||
pre:
|
pre:
|
||||||
- sudo curl -L -o /usr/bin/docker 'https://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.1-circleci'
|
- sudo curl -L -o /usr/bin/docker 'https://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.1-circleci'
|
||||||
|
@ -44,7 +44,7 @@ deployment:
|
||||||
- docker push $DOCKER_IMAGE_NAME
|
- docker push $DOCKER_IMAGE_NAME
|
||||||
- docker push $QUAY_IMAGE_NAME
|
- docker push $QUAY_IMAGE_NAME
|
||||||
hub_tag:
|
hub_tag:
|
||||||
tag: /^[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
tag: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
||||||
owner: prometheus
|
owner: prometheus
|
||||||
commands:
|
commands:
|
||||||
- promu crossbuild tarballs
|
- promu crossbuild tarballs
|
||||||
|
@ -53,7 +53,7 @@ deployment:
|
||||||
- docker login -e $DOCKER_EMAIL -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
|
||||||
- docker login -e $QUAY_EMAIL -u $QUAY_LOGIN -p $QUAY_PASSWORD quay.io
|
- docker login -e $QUAY_EMAIL -u $QUAY_LOGIN -p $QUAY_PASSWORD quay.io
|
||||||
- |
|
- |
|
||||||
if [[ "$CIRCLE_TAG" =~ ^[0-9]+(\.[0-9]+){2}$ ]]; then
|
if [[ "$CIRCLE_TAG" =~ ^v[0-9]+(\.[0-9]+){2}$ ]]; then
|
||||||
docker tag "$DOCKER_IMAGE_NAME:$CIRCLE_TAG" "$DOCKER_IMAGE_NAME:latest"
|
docker tag "$DOCKER_IMAGE_NAME:$CIRCLE_TAG" "$DOCKER_IMAGE_NAME:latest"
|
||||||
docker tag "$QUAY_IMAGE_NAME:$CIRCLE_TAG" "$QUAY_IMAGE_NAME:latest"
|
docker tag "$QUAY_IMAGE_NAME:$CIRCLE_TAG" "$QUAY_IMAGE_NAME:latest"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue