From: prombot Date: Wed, 31 Mar 2021 00:02:11 +0000 (+0000) Subject: Update common Prometheus files X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3816ed7ec6fcec8a452144adc5fe3217dc2eb88d;p=blackbox_exporter.git Update common Prometheus files Signed-off-by: prombot --- diff --git a/.circleci/config.yml b/.circleci/config.yml index 481519b..4775fc0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,26 +1,20 @@ ---- version: 2.1 - orbs: - prometheus: prometheus/prometheus@0.8.0 - + prometheus: prometheus/prometheus@0.11.0 executors: # Whenever the Go version is updated here, .promu.yml should also be updated. golang: docker: - - image: circleci/golang:1.16 - + - image: circleci/golang:1.16 jobs: test: executor: golang - steps: - - prometheus/setup_environment - - run: make - - prometheus/store_artifact: - file: blackbox_exporter - - run: git diff --exit-code - + - prometheus/setup_environment + - run: make + - prometheus/store_artifact: + file: blackbox_exporter + - run: git diff --exit-code # IPv6 tests require the machine executor. # See https://circleci.com/docs/2.0/faq/#can-i-use-ipv6-in-my-tests for details. test-ipv6: @@ -30,55 +24,53 @@ jobs: # should also be updated. environment: DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.16-base - steps: - - checkout - - run: - name: enable ipv6 - command: | - cat \<<'EOF' | sudo tee /etc/docker/daemon.json - { - "ipv6": true, - "fixed-cidr-v6": "2001:db8:1::/64" - } - EOF - sudo service docker restart - - run: docker run --rm -t -v "$(pwd):/app" "${DOCKER_TEST_IMAGE_NAME}" -i github.com/prometheus/blackbox_exporter -T - + - checkout + - run: + name: enable ipv6 + command: | + cat \<<'EOF' | sudo tee /etc/docker/daemon.json + { + "ipv6": true, + "fixed-cidr-v6": "2001:db8:1::/64" + } + EOF + sudo service docker restart + - run: docker run --rm -t -v "$(pwd):/app" "${DOCKER_TEST_IMAGE_NAME}" -i github.com/prometheus/blackbox_exporter -T workflows: version: 2 blackbox_exporter: jobs: - - test: - filters: - tags: - only: /.*/ - - test-ipv6: - filters: - tags: - only: /.*/ - - prometheus/build: - name: build - filters: - tags: - only: /.*/ - - prometheus/publish_master: - context: org-context - requires: - - test - - test-ipv6 - - build - filters: - branches: - only: master - - prometheus/publish_release: - context: org-context - requires: - - test - - test-ipv6 - - build - filters: - tags: - only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ - branches: - ignore: /.*/ + - test: + filters: + tags: + only: /.*/ + - test-ipv6: + filters: + tags: + only: /.*/ + - prometheus/build: + name: build + filters: + tags: + only: /.*/ + - prometheus/publish_master: + context: org-context + requires: + - test + - test-ipv6 + - build + filters: + branches: + only: master + - prometheus/publish_release: + context: org-context + requires: + - test + - test-ipv6 + - build + filters: + tags: + only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + branches: + ignore: /.*/