Skip to content

Commit 50d85c8

Browse files
authored
feat(docker)!: remove docker hub (#1058)
1 parent 347d23d commit 50d85c8

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,22 @@ env:
1414
jobs:
1515
release:
1616
runs-on: ubuntu-22.04
17+
permissions:
18+
contents: write
19+
packages: write
1720

1821
steps:
1922
- uses: actions/checkout@v4
2023
- uses: actions/setup-go@v5
2124
with:
2225
go-version: 1.21
2326

24-
- name: Login on Docker Hub
25-
uses: docker/login-action@v3
26-
with:
27-
username: ${{ secrets.DOCKER_USERNAME }}
28-
password: ${{ secrets.DOCKER_PASSWORD }}
2927
- name: Login on GHCR
3028
uses: docker/login-action@v3
3129
with:
3230
registry: ghcr.io
3331
username: ${{ github.actor }}
34-
password: ${{ secrets.CR_PAT }}
32+
password: ${{ secrets.GITHUB_TOKEN }}
3533

3634
- name: Install dependencies
3735
run: |

.goreleaser.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ dockers:
4040
- '--label=org.opencontainers.image.url=https://manael.org/'
4141
- '--label=org.opencontainers.image.version={{.Version}}'
4242
image_templates:
43-
- 'manael/{{ .ProjectName }}:latest'
4443
- 'ghcr.io/manaelproxy/{{ .ProjectName }}:latest'
45-
- 'manael/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}.{{ .Patch }}'
4644
- 'ghcr.io/manaelproxy/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}.{{ .Patch }}'
47-
- 'manael/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}'
4845
- 'ghcr.io/manaelproxy/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}'
4946
dockerfile: Dockerfile
5047
ids:

0 commit comments

Comments
 (0)