Skip to content

Commit

Permalink
Debug release process
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Aug 23, 2022
1 parent f4d96b8 commit c7c032a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
30 changes: 26 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ builds:
- '-X={{ .ModulePath }}/internal/version.Version={{ .Version }}'
- '-X={{ .ModulePath }}/internal/version.Commit={{ .FullCommit }}'
- '-extldflags=-static'
main: './cmd/gcr-cleaner-cli/...'
main: './cmd/gcr-cleaner-cli/main.go'
binary: 'gcr-cleaner-cli'
goos:
- 'darwin'
- 'linux'
Expand All @@ -48,7 +49,8 @@ builds:
- '-X={{ .ModulePath }}/internal/version.Version={{ .Version }}'
- '-X={{ .ModulePath }}/internal/version.Commit={{ .FullCommit }}'
- '-extldflags=-static'
main: './cmd/gcr-cleaner-server/...'
main: './cmd/gcr-cleaner-server/main.go'
binary: 'gcr-cleaner'
goos:
- 'darwin'
- 'linux'
Expand Down Expand Up @@ -228,7 +230,23 @@ docker_manifests:
- 'us-docker.pkg.dev/gcr-cleaner/gcr-cleaner/gcr-cleaner:latest-arm64'

archives:
- format: 'tar.gz'
# cli
-
id: 'cli'
format: 'tar.gz'
builds:
- 'cli'
name_template: 'gcr-cleaner-cli_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
format_overrides:
- goos: 'windows'
format: 'zip'

# server
-
id: 'server'
format: 'tar.gz'
builds:
- 'server'
name_template: 'gcr-cleaner_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
format_overrides:
- goos: 'windows'
Expand All @@ -239,7 +257,11 @@ checksum:
algorithm: 'sha512'

signs:
- artifacts: 'checksum'
-
artifacts: 'checksum'
ids:
- 'cli'
- 'server'
args:
- '--batch'
- '--local-user'
Expand Down

0 comments on commit c7c032a

Please sign in to comment.