From 14ee60776f0f71eec53dbf131c04789568157e11 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Mon, 7 Sep 2020 20:01:27 +0900 Subject: [PATCH] feat: push image to ghcr (#295) --- .github/workflows/release.yml | 7 +++---- .goreleaser.yml | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3da19a74..61432ae6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: | diff --git a/.goreleaser.yml b/.goreleaser.yml index 8fdb1198..0ed67eb2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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