Skip to content

Commit

Permalink
Use ghcr.io instead of quay.io
Browse files Browse the repository at this point in the history
Signed-off-by: David VIEJO <[email protected]>
  • Loading branch information
dviejokfs committed Feb 10, 2025
1 parent 5c96ac0 commit affc7c6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/goreleaser-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-beta[0-9]+'

permissions:
contents: write # for goreleaser to create releases
packages: write # for pushing to ghcr.io
id-token: write # for signing the images

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -20,9 +25,9 @@ jobs:
- name: Docker Login
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: write # for goreleaser to create releases
packages: write # for pushing to ghcr.io
id-token: write # for signing the images

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -20,9 +25,9 @@ jobs:
- name: Docker Login
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ dockers:
goarch: amd64
dockerfile: Dockerfile
image_templates:
- "quay.io/kfsoftware/hlf-operator:{{ .Tag }}"
- "quay.io/kfsoftware/hlf-operator:latest"
- "ghcr.io/hyperledger-bevel/bevel-operator-fabric:{{ .Tag }}"
- "ghcr.io/hyperledger-bevel/bevel-operator-fabric:latest"
extra_files:
- charts
- LICENSE
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
### Install controller-gen

```bash
go install sigs.k8s.io/controller-tools/cmd/controller-gen@0.16.4
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.4
```


Expand Down

0 comments on commit affc7c6

Please sign in to comment.