Skip to content

Commit

Permalink
goreleaser dockerhub added
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgaOzen committed Dec 24, 2022
1 parent 93085b8 commit c66c988
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,31 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.4
- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_PAT }}
- name: Set up Go
uses: actions/setup-go@v3
password: ${{ secrets.GH_TOKEN }}
- name: Login to docker.io
uses: docker/login-action@v1
with:
go-version: 1.19.4
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name : Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ docker_manifests:
- "ghcr.io/permify/permify:v{{ .Version }}-amd64"
- "ghcr.io/permify/permify:v{{ .Version }}-arm64"
name_template: "ghcr.io/permify/permify:latest"
-
image_templates:
- "permify/permify:v{{ .Version }}-amd64"
- "permify/permify:v{{ .Version }}-arm64"
name_template: "permify/permify:v{{ .Version }}"
-
image_templates:
- "permify/permify:v{{ .Version }}-amd64"
- "permify/permify:v{{ .Version }}-arm64"
name_template: "permify/permify:latest"
dockers:
-
build_flag_templates:
Expand All @@ -62,6 +72,7 @@ dockers:
goarch: arm64
image_templates:
- "ghcr.io/permify/permify:v{{ .Version }}-arm64"
- "permify/permify:v{{ .Version }}-arm64"
use: buildx
-
build_flag_templates:
Expand All @@ -70,6 +81,7 @@ dockers:
goarch: amd64
image_templates:
- "ghcr.io/permify/permify:v{{ .Version }}-amd64"
- "permify/permify:v{{ .Version }}-amd64"
use: buildx
nfpms:
-
Expand Down

0 comments on commit c66c988

Please sign in to comment.