Skip to content

Commit

Permalink
bump goreleaser version, add extra files to set docker context
Browse files Browse the repository at this point in the history
  • Loading branch information
odyfey committed Jul 6, 2024
1 parent 7375466 commit 3876a58
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

builds:
- env:
- CGO_ENABLED=0
Expand All @@ -22,6 +24,7 @@ dockers:
build_flag_templates:
- "--push"
- "--platform=linux/amd64"

- image_templates:
- &arm_image 'ghcr.io/odyfey/tern:{{ .Tag }}-arm64'
use: buildx
Expand All @@ -30,11 +33,21 @@ dockers:
- "--platform=linux/arm64"
goarch: arm64

- extra_files:
- go.mod
- go.sum
- copy_dir.go
- main.go
- ssh_tunnel.go
- tern_tunnel.go
- migrate

docker_manifests:
- name_template: 'ghcr.io/odyfey/tern:{{ .Tag }}'
image_templates:
- *amd_image
- *arm_image

- name_template: 'ghcr.io/odyfey/tern:latest'
image_templates:
- *amd_image
Expand Down

0 comments on commit 3876a58

Please sign in to comment.