From 79c5fc72837404cfef96ce9dcd5cae3343931655 Mon Sep 17 00:00:00 2001 From: Karan Sharma Date: Thu, 24 Mar 2022 12:43:33 +0530 Subject: [PATCH] ci: fix release --- .github/workflows/release.yml | 3 ++- .goreleaser.yml | 50 +++++++++++++++++------------------ 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 943c915..9651103 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,8 +24,9 @@ jobs: uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} + username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index 27e6fd7..49159b4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -67,28 +67,28 @@ dockers: - "--build-arg" - "ARCH=arm64v8" - - image_templates: - - "ghcr.io/mr-karan/doggo-api:{{ .Tag }}" - - "ghcr.io/mr-karan/doggo-api:latest" - id: doggo-api - ids: - - api - dockerfile: Dockerfile-api - build_flag_templates: - - "--build-arg" - - "ARCH=amd64" - extra_files: - - config-api-sample.toml - - image_templates: - - "ghcr.io/mr-karan/doggo-api:{{ .Tag }}-arm64v8" - - "ghcr.io/mr-karan/doggo-api:latest-arm64v8" - id: doggo-api-arm - ids: - - api - goarch: arm64 - dockerfile: Dockerfile-api - build_flag_templates: - - "--build-arg" - - "ARCH=arm64v8" - extra_files: - - config-api-sample.toml + # - image_templates: + # - "ghcr.io/mr-karan/doggo-api:{{ .Tag }}" + # - "ghcr.io/mr-karan/doggo-api:latest" + # id: doggo-api + # ids: + # - api + # dockerfile: Dockerfile-api + # build_flag_templates: + # - "--build-arg" + # - "ARCH=amd64" + # extra_files: + # - config-api-sample.toml + # - image_templates: + # - "ghcr.io/mr-karan/doggo-api:{{ .Tag }}-arm64v8" + # - "ghcr.io/mr-karan/doggo-api:latest-arm64v8" + # id: doggo-api-arm + # ids: + # - api + # goarch: arm64 + # dockerfile: Dockerfile-api + # build_flag_templates: + # - "--build-arg" + # - "ARCH=arm64v8" + # extra_files: + # - config-api-sample.toml