Skip to content

Commit

Permalink
ci: fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-karan committed Mar 24, 2022
1 parent a855ec4 commit 79c5fc7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
50 changes: 25 additions & 25 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 79c5fc7

Please sign in to comment.