Skip to content

Commit

Permalink
Merge pull request #18 from mjudeikis/reduce.goreleaser
Browse files Browse the repository at this point in the history
🌱  attempt to fix build chanining
  • Loading branch information
mjudeikis committed Jul 30, 2023
2 parents ad2ca35 + b890f06 commit 42ede1d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
tags:
- 'v*'
pull_request:
paths:
- .github/workflows/goreleaser.yml
- .goreleaser.yaml

permissions:
contents: write
Expand Down
18 changes: 15 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ builds:
- arm64
env:
- CGO_ENABLED=0
- id: "kubectl-tmc"
main: ./cmd/kubectl-tmc
binary: bin/kubectl-tmc
ldflags:
- "{{ .Env.LDFLAGS }}"
goos:
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
- id: "kubectl-workload"
main: ./cmd/kubectl-workload
binary: bin/kubectl-workload
Expand All @@ -28,14 +41,13 @@ builds:
archives:
- id: tmc
builds:
- tmc
- kubectl-tmc
- kubectl-workload
- id: kubectl-tmc-plugin
builds:
- kubectl-tmc
- kubectl-workload
name_template: "kubectl-tmc-plugin_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- bin/kubectl-workloads
release:
draft: true
prerelease: auto
Expand Down

0 comments on commit 42ede1d

Please sign in to comment.