Skip to content

Commit af096b7

Browse files
authored
Update PromCI (#268)
Update PromCI from latest example * Fix ghcr_io publish org Signed-off-by: SuperQ <superq@gmail.com>
1 parent 7b25a2f commit af096b7

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ jobs:
1818
# should also be updated.
1919
image: quay.io/prometheus/golang-builder:1.26-base
2020
steps:
21-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2222
with:
2323
persist-credentials: false
2424
- uses: prometheus/promci-setup@5af30ba8c199a91d6c04ebdc3c48e630e355f62d # v0.1.0
2525
- run: make GO_ONLY=1 SKIP_GOLANGCI_LINT=1
26+
- run: git diff --exit-code
2627

2728
build:
2829
name: Build
@@ -36,8 +37,8 @@ jobs:
3637
parallelism: 4
3738
thread: ${{ matrix.thread }}
3839

39-
publish_main:
40-
name: Publish main branch artifacts
40+
publish_default:
41+
name: Publish default branch artifacts
4142
runs-on: ubuntu-latest
4243
permissions:
4344
packages: write
@@ -51,6 +52,7 @@ jobs:
5152
with:
5253
docker_hub_organization: prometheuscommunity
5354
docker_hub_password: ${{ secrets.docker_hub_password }}
55+
ghcr_io_organization: prometheus-community
5456
ghcr_io_password: ${{ github.token }}
5557
quay_io_organization: prometheuscommunity
5658
quay_io_password: ${{ secrets.quay_io_password }}
@@ -69,6 +71,7 @@ jobs:
6971
with:
7072
docker_hub_organization: prometheuscommunity
7173
docker_hub_password: ${{ secrets.docker_hub_password }}
74+
ghcr_io_organization: prometheus-community
7275
ghcr_io_password: ${{ github.token }}
7376
quay_io_organization: prometheuscommunity
7477
quay_io_password: ${{ secrets.quay_io_password }}

0 commit comments

Comments
 (0)