Skip to content

Commit

Permalink
feat: push image to ghcr (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts authored Sep 7, 2020
1 parent 220e7d6 commit 14ee607
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ jobs:
go-version: 1.14

- name: Login on Docker Hub
run: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Login on GHCR
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin

- name: Install libwebp
run: |
Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ dockers:
- 'manael/{{ .ProjectName }}:latest'
- 'manael/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}.{{ .Patch }}'
- 'manael/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}'
- 'ghcr.io/manaelproxy/{{ .ProjectName }}:latest'
- 'ghcr.io/manaelproxy/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}.{{ .Patch }}'
- 'ghcr.io/manaelproxy/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}'
dockerfile: Dockerfile
binaries:
- manael

1 comment on commit 14ee607

@vercel
Copy link

@vercel vercel bot commented on 14ee607 Sep 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.