2023-09-21 16:22:17 +00:00
|
|
|
---
|
|
|
|
name: Release
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
name: Run ci
|
|
|
|
uses: ./.github/workflows/ci.yml
|
|
|
|
|
2023-10-12 09:43:30 +00:00
|
|
|
build:
|
|
|
|
name: Build Alertmanager for all architectures
|
2023-09-21 16:22:17 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-10-12 09:43:30 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
thread: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
|
2023-09-21 16:22:17 +00:00
|
|
|
needs: ci
|
|
|
|
steps:
|
2024-08-12 08:31:33 +00:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-10-12 09:43:30 +00:00
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
|
|
|
- uses: ./.github/promci/actions/build
|
|
|
|
with:
|
|
|
|
parallelism: 12
|
|
|
|
thread: ${{ matrix.thread }}
|
|
|
|
publish_release:
|
|
|
|
name: Publish release artefacts
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build
|
|
|
|
steps:
|
2024-08-12 08:31:33 +00:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-10-12 09:43:30 +00:00
|
|
|
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0
|
2023-09-21 16:22:17 +00:00
|
|
|
- uses: ./.github/promci/actions/publish_release
|
|
|
|
with:
|
|
|
|
docker_hub_login: ${{ secrets.docker_hub_login }}
|
|
|
|
docker_hub_password: ${{ secrets.docker_hub_password }}
|
|
|
|
quay_io_login: ${{ secrets.quay_io_login }}
|
|
|
|
quay_io_password: ${{ secrets.quay_io_password }}
|