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 uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2 uses: goreleaser/goreleaser-action@v2
with: with:

View File

@ -67,28 +67,28 @@ dockers:
- "--build-arg" - "--build-arg"
- "ARCH=arm64v8" - "ARCH=arm64v8"
- image_templates: # - image_templates:
- "ghcr.io/mr-karan/doggo-api:{{ .Tag }}" # - "ghcr.io/mr-karan/doggo-api:{{ .Tag }}"
- "ghcr.io/mr-karan/doggo-api:latest" # - "ghcr.io/mr-karan/doggo-api:latest"
id: doggo-api # id: doggo-api
ids: # ids:
- api # - api
dockerfile: Dockerfile-api # dockerfile: Dockerfile-api
build_flag_templates: # build_flag_templates:
- "--build-arg" # - "--build-arg"
- "ARCH=amd64" # - "ARCH=amd64"
extra_files: # extra_files:
- config-api-sample.toml # - config-api-sample.toml
- image_templates: # - image_templates:
- "ghcr.io/mr-karan/doggo-api:{{ .Tag }}-arm64v8" # - "ghcr.io/mr-karan/doggo-api:{{ .Tag }}-arm64v8"
- "ghcr.io/mr-karan/doggo-api:latest-arm64v8" # - "ghcr.io/mr-karan/doggo-api:latest-arm64v8"
id: doggo-api-arm # id: doggo-api-arm
ids: # ids:
- api # - api
goarch: arm64 # goarch: arm64
dockerfile: Dockerfile-api # dockerfile: Dockerfile-api
build_flag_templates: # build_flag_templates:
- "--build-arg" # - "--build-arg"
- "ARCH=arm64v8" # - "ARCH=arm64v8"
extra_files: # extra_files:
- config-api-sample.toml # - config-api-sample.toml