Update common Prometheus files
authorprombot <prometheus-team@googlegroups.com>
Wed, 31 Mar 2021 00:02:11 +0000 (00:02 +0000)
committerprombot <prometheus-team@googlegroups.com>
Wed, 31 Mar 2021 00:02:11 +0000 (00:02 +0000)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
.circleci/config.yml

index 481519bfc89370c558c3d3ec1696826356796a9e..4775fc0400e9a8d22913bc7ea266e7cfb8155180 100644 (file)
@@ -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: /.*/