Skip to content

Commit

Permalink
ci: optimize build time
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-karan committed Jun 6, 2023
1 parent b9186fa commit 5ad907c
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ builds:
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w -X "main.buildString={{ .Tag }} ({{ .ShortCommit }} {{ .Date }})"
dir: ./cmd/
Expand All @@ -29,6 +27,7 @@ archives:
format_overrides:
- goos: windows
format: zip

checksum:
name_template: "checksums.txt"
snapshot:
Expand All @@ -41,7 +40,7 @@ changelog:
- "^test:"

dockers:
- image_templates: ["ghcr.io/zerodha/mii-lama:{{ .Tag }}-amd64"]
- image_templates: ["ghcr.io/zerodha/mii-lama:{{ .Tag }}"]
goarch: amd64
dockerfile: Dockerfile
use: buildx
Expand All @@ -54,12 +53,4 @@ dockers:
- "--platform=linux/amd64"
extra_files:
- config.sample.toml

docker_manifests:
- name_template: ghcr.io/zerodha/mii-lama:{{ .Tag }}
image_templates:
- ghcr.io/zerodha/mii-lama:{{ .Tag }}-amd64
- ghcr.io/zerodha/mii-lama:{{ .Tag }}-arm64
- name_template: ghcr.io/zerodha/mii-lama:latest
image_templates:
- ghcr.io/zerodha/mii-lama:{{ .Tag }}-amd64
- prometheus.sample.yml

0 comments on commit 5ad907c

Please sign in to comment.