ci: fix release

pull/41/head v0.4.2
Karan Sharma 2022-03-24 12:43:33 +05:30
parent a855ec4d45
commit 79c5fc7283
2 changed files with 27 additions and 26 deletions

View File

@ -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:

View File

@ -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