Skip to content

Conversation

@juanfont
Copy link
Owner

For the time being only on new tags...

Copy link
Contributor

@cure cure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're missing a .goreleaser.yml file in the repo. I propose one with these contents:

builds:
  - main: cmd/headscale/headscale.go
    mod_timestamp: '{{ .CommitTimestamp }}'
    goarch:
      - amd64
      - arm64
    goos:
      - linux

Only the line that sets main is strictly necessary. The mod_timestamp line is nice so that we make reproducible builds. The goarch and goos values are there to limit the number of targets we build for.

I tested this in a dummy repo by playing around with goreleaser --snapshot --skip-publish --rm-dist and after setting a local tag, goreleaser --skip-publish --rm-dist.

@juanfont
Copy link
Owner Author

Brilliant move on my side, I left the most important file behind :(

Copy link
Contributor

@cure cure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@juanfont juanfont merged commit 6df90a9 into main Jun 14, 2021
@juanfont juanfont deleted the goreleaser branch June 14, 2021 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants