From 33e9ecfcb9b9fbbfc671760ca5235b36c719144f Mon Sep 17 00:00:00 2001 From: mlsmaycon Date: Sat, 15 May 2021 11:58:31 +0500 Subject: [PATCH] using docker hub --- .github/workflows/release.yml | 7 +++---- .goreleaser.yaml | 16 ++++++++-------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95a6426e6..4f3fbae9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,12 +37,11 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: Login to GitHub Packages Docker Registry + name: Login to Docker hub uses: docker/login-action@v1 with: - registry: ghcr.io - username: ${{ secrets.GITHUB_TOKEN }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_TOKEN }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e59cf0f91..9b1c2ba55 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -30,7 +30,7 @@ nfpms: postinstall: "release_files/post_install.sh" dockers: - image_templates: - - ghcr.io/wiretrustee/wiretrustee:signal-{{ .Version }}-amd64 + - wiretrustee/wiretrustee:signal-{{ .Version }}-amd64 goarch: amd64 use_buildx: true dockerfile: Dockerfile @@ -43,7 +43,7 @@ dockers: - "--label=org.opencontainers.image.version={{.Version}}" - "--label=maintainer=wiretrustee@wiretrustee.com" - image_templates: - - ghcr.io/wiretrustee/wiretrustee:signal-{{ .Version }}-arm64v8 + - wiretrustee/wiretrustee:signal-{{ .Version }}-arm64v8 goarch: arm64 use_buildx: true dockerfile: Dockerfile @@ -57,12 +57,12 @@ dockers: - "--label=maintainer=wiretrustee@wiretrustee.com" docker_manifests: - - name_template: ghcr.io/wiretrustee/wiretrustee:signal-{{ .Version }} + - name_template: wiretrustee/wiretrustee:signal-{{ .Version }} image_templates: - - ghcr.io/wiretrustee/wiretrustee:signal-{{ .Version }}-arm64v8 - - ghcr.io/wiretrustee/wiretrustee:signal-{{ .Version }}-amd64 + - wiretrustee/wiretrustee:signal-{{ .Version }}-arm64v8 + - wiretrustee/wiretrustee:signal-{{ .Version }}-amd64 - - name_template: ghcr.io/wiretrustee/wiretrustee:signal-latest + - name_template: wiretrustee/wiretrustee:signal-latest image_templates: - - ghcr.io/wiretrustee/wiretrustee:signal-{{ .Version }}-arm64v8 - - ghcr.io/wiretrustee/wiretrustee:signal-{{ .Version }}-amd64 \ No newline at end of file + - wiretrustee/wiretrustee:signal-{{ .Version }}-arm64v8 + - wiretrustee/wiretrustee:signal-{{ .Version }}-amd64 \ No newline at end of file