Skip to content

Commit 46d6743

Browse files
committed
ghcr
1 parent 23363c0 commit 46d6743

1 file changed

Lines changed: 12 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -73,39 +73,28 @@ jobs:
7373
name: Publish master branch artifacts
7474
runs-on: ubuntu-latest
7575
needs: [test_go, build_all, verify-example-configs]
76-
if: |
77-
(github.repository == 'prometheus-community/yet-another-cloudwatch-exporter')
78-
&&
79-
(github.event_name == 'push' && github.event.ref == 'refs/heads/master')
76+
if: (github.event_name == 'push' && github.event.ref == 'refs/heads/master')
8077
steps:
8178
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8279
- uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d # v0.4.7
83-
- uses: ./.github/promci/actions/publish_main
80+
- uses: ./.github/promci/actions/publish_images
8481
with:
85-
docker_hub_organization: prometheuscommunity
86-
docker_hub_login: ${{ secrets.docker_hub_login }}
87-
docker_hub_password: ${{ secrets.docker_hub_password }}
88-
quay_io_organization: prometheuscommunity
89-
quay_io_login: ${{ secrets.quay_io_login }}
90-
quay_io_password: ${{ secrets.quay_io_password }}
82+
registry: ghcr.io
83+
organization: clickhouse
84+
login: ${{ github.actor }}
85+
password: ${{ secrets.GITHUB_TOKEN }}
9186

9287
publish_release:
9388
name: Publish release artifacts
9489
runs-on: ubuntu-latest
9590
needs: [test_go, build_all, verify-example-configs]
96-
if: |
97-
(github.repository == 'prometheus-community/yet-another-cloudwatch-exporter')
98-
&&
99-
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v0.'))
91+
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v0.'))
10092
steps:
10193
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
10294
- uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d # v0.4.7
103-
- uses: ./.github/promci/actions/publish_release
95+
- uses: ./.github/promci/actions/publish_release_images
10496
with:
105-
docker_hub_organization: prometheuscommunity
106-
docker_hub_login: ${{ secrets.docker_hub_login }}
107-
docker_hub_password: ${{ secrets.docker_hub_password }}
108-
quay_io_organization: prometheuscommunity
109-
quay_io_login: ${{ secrets.quay_io_login }}
110-
quay_io_password: ${{ secrets.quay_io_password }}
111-
github_token: ${{ secrets.PROMBOT_GITHUB_TOKEN }}
97+
registry: ghcr.io
98+
organization: clickhouse
99+
login: ${{ github.actor }}
100+
password: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)