Bump prometheus/promci from 0.4.4 to 0.4.5 #86
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
# Whenever the Go version is updated here, .promu.yml | |
# should also be updated. | |
container: | |
image: quay.io/prometheus/golang-builder:1.23-base | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5 | |
- uses: ./.github/promci/actions/setup_environment | |
- run: make | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
thread: [ 0, 1, 2 ] | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5 | |
- uses: ./.github/promci/actions/build | |
with: | |
parallelism: 3 | |
thread: ${{ matrix.thread }} | |
golangci: | |
name: golangci-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Install Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: 1.23.x | |
- name: Lint | |
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 | |
with: | |
version: v1.60.2 | |
publish_main: | |
name: Publish main branch artifacts | |
runs-on: ubuntu-latest | |
needs: [test, build] | |
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5 | |
- uses: ./.github/promci/actions/publish_main | |
with: | |
docker_hub_organization: superque | |
docker_hub_login: ${{ secrets.docker_hub_login }} | |
docker_hub_password: ${{ secrets.docker_hub_password }} | |
quay_io_organization: superq | |
quay_io_login: ${{ secrets.quay_io_login }} | |
quay_io_password: ${{ secrets.quay_io_password }} | |
publish_release: | |
name: Publish release arfefacts | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
needs: [test, build] | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5 | |
- uses: ./.github/promci/actions/publish_release | |
with: | |
docker_hub_organization: superque | |
docker_hub_login: ${{ secrets.docker_hub_login }} | |
docker_hub_password: ${{ secrets.docker_hub_password }} | |
quay_io_organization: superq | |
quay_io_login: ${{ secrets.quay_io_login }} | |
quay_io_password: ${{ secrets.quay_io_password }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} |