1919 image : quay.io/prometheus/golang-builder:1.26-base
2020 steps :
2121 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+ with :
23+ persist-credentials : false
2224 - uses : prometheus/promci-setup@5af30ba8c199a91d6c04ebdc3c48e630e355f62d # v0.1.0
2325 - run : make GO_ONLY=1 SKIP_GOLANGCI_LINT=1
2426
@@ -29,41 +31,45 @@ jobs:
2931 matrix :
3032 thread : [ 0, 1, 2, 3]
3133 steps :
32- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33- - uses : prometheus/promci/build@9c86752f3395e08c57719af549cc455d8e2c2514 # v0.7.0
34+ - uses : prometheus/promci/build@d9d4f5688814f0b77bf003d07fb8c00507390634 # v0.8.2
3435 with :
3536 parallelism : 4
3637 thread : ${{ matrix.thread }}
3738
3839 publish_main :
3940 name : Publish main branch artifacts
4041 runs-on : ubuntu-latest
42+ permissions :
43+ packages : write
4144 needs : [test_go, build]
4245 if : |
4346 (github.event_name == 'push' && github.event.ref == 'refs/heads/main')
4447 ||
4548 (github.event_name == 'push' && github.event.ref == 'refs/heads/master')
4649 steps :
47- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
48- - uses : prometheus/promci/publish_main@9c86752f3395e08c57719af549cc455d8e2c2514 # v0.7.0
50+ - uses : prometheus/promci/publish_main@d9d4f5688814f0b77bf003d07fb8c00507390634 # v0.8.2
4951 with :
5052 docker_hub_organization : prometheuscommunity
5153 docker_hub_password : ${{ secrets.docker_hub_password }}
54+ ghcr_io_password : ${{ github.token }}
5255 quay_io_organization : prometheuscommunity
5356 quay_io_password : ${{ secrets.quay_io_password }}
5457
5558 publish_release :
5659 name : Publish release artefacts
5760 runs-on : ubuntu-latest
61+ permissions :
62+ contents : write
63+ packages : write
5864 needs : [test_go, build]
5965 if : |
6066 (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
6167 steps :
62- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
63- - uses : prometheus/promci/publish_release@9c86752f3395e08c57719af549cc455d8e2c2514 # v0.7.0
68+ - uses : prometheus/promci/publish_release@d9d4f5688814f0b77bf003d07fb8c00507390634 # v0.8.2
6469 with :
6570 docker_hub_organization : prometheuscommunity
6671 docker_hub_password : ${{ secrets.docker_hub_password }}
72+ ghcr_io_password : ${{ github.token }}
6773 quay_io_organization : prometheuscommunity
6874 quay_io_password : ${{ secrets.quay_io_password }}
69- github_token : ${{ secrets.PROMBOT_GITHUB_TOKEN }}
75+ github_token : ${{ github.token }}
0 commit comments