Update build
* Update Go to 1.22. * Update various actions. * Update CircleCI dependencies. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
parent
b233fe1816
commit
b762a19287
|
@ -2,7 +2,7 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
orbs:
|
orbs:
|
||||||
prometheus: prometheus/prometheus@0.17.1
|
prometheus: prometheus/prometheus@0.17.1
|
||||||
go: circleci/go@1.9.0
|
go: circleci/go@1.11.0
|
||||||
jobs:
|
jobs:
|
||||||
test_frontend:
|
test_frontend:
|
||||||
# We need to use a machine executor because the front-end validation runs
|
# We need to use a machine executor because the front-end validation runs
|
||||||
|
@ -18,7 +18,7 @@ jobs:
|
||||||
command: sudo rm -rf /usr/local/go
|
command: sudo rm -rf /usr/local/go
|
||||||
# Whenever the Go version is updated here, .promu.yml should also be updated.
|
# Whenever the Go version is updated here, .promu.yml should also be updated.
|
||||||
- go/install:
|
- go/install:
|
||||||
version: "1.21.3"
|
version: "1.22.6"
|
||||||
- run:
|
- run:
|
||||||
name: Remove generated code
|
name: Remove generated code
|
||||||
command: make clean
|
command: make clean
|
||||||
|
@ -47,15 +47,15 @@ jobs:
|
||||||
test:
|
test:
|
||||||
docker:
|
docker:
|
||||||
# Whenever the Go version is updated here, .promu.yml should also be updated.
|
# Whenever the Go version is updated here, .promu.yml should also be updated.
|
||||||
- image: quay.io/prometheus/golang-builder:1.21-base
|
- image: quay.io/prometheus/golang-builder:1.22-base
|
||||||
# maildev containers are for running the email tests against a "real" SMTP server.
|
# maildev containers are for running the email tests against a "real" SMTP server.
|
||||||
# See notify/email_test.go for details.
|
# See notify/email_test.go for details.
|
||||||
- image: maildev/maildev:1.1.0
|
- image: maildev/maildev:2.1.0
|
||||||
name: maildev-noauth
|
name: maildev-noauth
|
||||||
entrypoint: bin/maildev
|
entrypoint: bin/maildev
|
||||||
command:
|
command:
|
||||||
- -v
|
- -v
|
||||||
- image: maildev/maildev:1.1.0
|
- image: maildev/maildev:2.1.0
|
||||||
name: maildev-auth
|
name: maildev-auth
|
||||||
entrypoint: bin/maildev
|
entrypoint: bin/maildev
|
||||||
command:
|
command:
|
||||||
|
@ -104,7 +104,7 @@ jobs:
|
||||||
mixin:
|
mixin:
|
||||||
docker:
|
docker:
|
||||||
# Whenever the Go version is updated here, .promu.yml should also be updated.
|
# Whenever the Go version is updated here, .promu.yml should also be updated.
|
||||||
- image: quay.io/prometheus/golang-builder:1.21-base
|
- image: quay.io/prometheus/golang-builder:1.22-base
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
# pin the mixtool version until https://github.com/monitoring-mixins/mixtool/issues/135 is merged.
|
# pin the mixtool version until https://github.com/monitoring-mixins/mixtool/issues/135 is merged.
|
||||||
|
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
name: Test alertmanager frontend
|
name: Test alertmanager frontend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
- run: make clean
|
- run: make clean
|
||||||
- run: make all
|
- run: make all
|
||||||
working-directory: ./ui/app
|
working-directory: ./ui/app
|
||||||
|
@ -37,10 +37,10 @@ jobs:
|
||||||
# Whenever the Go version is updated here, .promu.yml
|
# Whenever the Go version is updated here, .promu.yml
|
||||||
# should also be updated.
|
# should also be updated.
|
||||||
container:
|
container:
|
||||||
image: quay.io/prometheus/golang-builder:1.21-base
|
image: quay.io/prometheus/golang-builder:1.22-base
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
- uses: prometheus/promci@v0.0.2
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
||||||
- uses: ./.github/promci/actions/setup_environment
|
- uses: ./.github/promci/actions/setup_environment
|
||||||
- run: make
|
- run: make
|
||||||
- run: git diff --exit-code
|
- run: git diff --exit-code
|
||||||
|
|
|
@ -10,11 +10,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
- name: install Go
|
- name: install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
|
||||||
with:
|
with:
|
||||||
go-version: 1.21.x
|
go-version: 1.22.x
|
||||||
# pin the mixtool version until https://github.com/monitoring-mixins/mixtool/issues/135 is merged.
|
# pin the mixtool version until https://github.com/monitoring-mixins/mixtool/issues/135 is merged.
|
||||||
- run: go install github.com/monitoring-mixins/mixtool/cmd/mixtool@2282201396b69055bb0f92f187049027a16d2130
|
- run: go install github.com/monitoring-mixins/mixtool/cmd/mixtool@2282201396b69055bb0f92f187049027a16d2130
|
||||||
- run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest
|
- run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest
|
||||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
thread: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
|
thread: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
|
||||||
needs: ci
|
needs: ci
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
||||||
- uses: ./.github/promci/actions/build
|
- uses: ./.github/promci/actions/build
|
||||||
with:
|
with:
|
||||||
|
@ -28,7 +28,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
||||||
- uses: ./.github/promci/actions/publish_main
|
- uses: ./.github/promci/actions/publish_main
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
thread: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
|
thread: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
|
||||||
needs: ci
|
needs: ci
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
||||||
- uses: ./.github/promci/actions/build
|
- uses: ./.github/promci/actions/build
|
||||||
with:
|
with:
|
||||||
|
@ -28,7 +28,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
||||||
- uses: ./.github/promci/actions/publish_release
|
- uses: ./.github/promci/actions/publish_release
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
go:
|
go:
|
||||||
# Whenever the Go version is updated here,
|
# Whenever the Go version is updated here,
|
||||||
# .circle/config.yml should also be updated.
|
# .circle/config.yml should also be updated.
|
||||||
version: 1.21
|
version: 1.22
|
||||||
repository:
|
repository:
|
||||||
path: github.com/prometheus/alertmanager
|
path: github.com/prometheus/alertmanager
|
||||||
build:
|
build:
|
||||||
|
@ -10,7 +10,6 @@ build:
|
||||||
path: ./cmd/alertmanager
|
path: ./cmd/alertmanager
|
||||||
- name: amtool
|
- name: amtool
|
||||||
path: ./cmd/amtool
|
path: ./cmd/amtool
|
||||||
flags: -a
|
|
||||||
tags:
|
tags:
|
||||||
all:
|
all:
|
||||||
- netgo
|
- netgo
|
||||||
|
|
Loading…
Reference in New Issue