Commit Graph
3828 Commits
Author SHA1 Message Date
Carlos A Becker a51fd7bd8f docs: improve prebuilt docs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-05-04 10:38:44 -03:00
Ishan Goel f62283c8ab docs: fix typo (#3081)
"you `main.go`" to "your `main.go`"
2022-05-03 09:48:55 -03:00
Carlos Alexandro Becker ea7a696fab feat: improve docker errors (#3080)
* feat: improve docker errors

Adding an error page with some more info to help debug issues.

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: forgot return

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: missing err

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-05-02 22:05:42 -03:00
Carlos A Becker 444218f51d chore: schema update
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-05-02 20:40:00 -03:00
Carlos A Becker 93dd387809 docs: goreleaser pro eula
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-05-02 20:30:19 -03:00
Carlos Alexandro Becker e31c49d4f6 feat: adds openssh-client to docker images (#3077)
closes #3076

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-29 09:32:24 -03:00
Carlos A Becker 2b2ad7c2a7 docs: wording
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-29 08:26:19 -03:00
Carlos Alexandro Becker 97db97df87 feat: new install anf run script (#3075)
* feat: new install anf run script

- move away from deprecated git.io
- support distribution
- verify checksums and signature

closes #3074

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: rename script

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-29 08:11:04 -03:00
dependabot[bot] 546325d912 chore(deps): bump docker/setup-buildx-action from 1.6.0 to 1.7.0 (#3071)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/94ab11c41e45d028884a99163086648e898eed25...f211e3e9ded2d9377c8cadc4489a4e38014bc4c9)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 10:23:24 -03:00
dependabot[bot] 35a7ebf680 chore(deps): bump github/codeql-action from 2.1.8 to 2.1.9 (#3070)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.8 to 2.1.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/1ed1437484560351c5be56cf73a48a279d116b78...7502d6e991ca767d2db617bfd823a1ed925a0d59)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 10:23:13 -03:00
Aram a77ed9aafd docs: fix example env var name on scoop docs (#3068) 2022-04-26 12:11:43 -03:00
Carlos Alexandro Becker 69cf1aa887 feat: first class build targets (#3062)
Adds the ability to tell goreleaser to use the first-class Go ports as
targets.

Closes #3053

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-25 22:07:28 -03:00
Carlos Alexandro Becker 5aeb8ace61 fix: prevent folder collisions in builds and universal binaries (#3063)
- on universal binaries, use the build id instead of the binary name to
  create the folder in the dist folder
- on builds, default the id the to the binary name instead of project
  name. The binary name already defaults to the project id if empty, so
  this should only prevent having to specify the id + binary name in
  some cases.

closes #3061

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-25 22:07:14 -03:00
Carlos Alexandro Becker 30630bfc7f feat: add builds.no_main_check and builds.command (#3064)
* feat: add builds.no_main_check and builds.command

Added two more options to the builds section:
- command: allow to override the command being run. E.g. instead of
  `go build`, one could run `go test -c` by setting gobinary, command
  and flags, respectively.
- no_main_check: by default, goreleaser will fail if there's no main
  function. This option allows to disable that check.

This PR effectively make GoReleaser able to release Go test binaries
instead of just "regular" binaries.

closes #3037

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* test: fix broken tests

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-25 22:07:02 -03:00
dependabot[bot] 1a6ac74db7 feat(deps): bump github.com/slack-go/slack from 0.10.2 to 0.10.3 (#3066)
Bumps [github.com/slack-go/slack](https://github.com/slack-go/slack) from 0.10.2 to 0.10.3.
- [Release notes](https://github.com/slack-go/slack/releases)
- [Changelog](https://github.com/slack-go/slack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/slack-go/slack/compare/v0.10.2...v0.10.3)

---
updated-dependencies:
- dependency-name: github.com/slack-go/slack
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 12:31:26 +00:00
dependabot[bot] d2cfe27bce feat(deps): bump github.com/xanzy/go-gitlab from 0.63.0 to 0.64.0 (#3065)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.63.0 to 0.64.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.63.0...v0.64.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 09:21:53 -03:00
dependabot[bot] 41f7c3ade5 chore(deps): bump codecov/codecov-action from 3.0.0 to 3.1.0 (#3059)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/e3c560433a6cc60aec8812599b7844a7b4fa0d71...81cd2dc8148241f03f5839d295e000b8f761e378)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-22 09:36:20 -03:00
Carlos A Becker 3c24d52970 chore: refresh
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-21 22:28:12 -03:00
Carlos Alexandro Becker 63436392db fix: custom targets if missing goamd64, goarm, gomips (#3056)
* fix: custom targets if missing goamd64, goarm, gomips

if the user provide custom targets without the goamd64, goarm or gomips bit, things may go awry at some point.

this prevents issues by suffixing them with the default when its missing.

closes https://github.com/goreleaser/goreleaser/issues/3055

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* test: fix build tests

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
v1.8.3
2022-04-20 09:43:39 -03:00
Carlos Alexandro Becker 922992ce76 fix: archive ids (#3052)
* fix: archive ids

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* test: add archive id filter test

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-19 22:49:08 -03:00
Andreas Deininger 38bc6b504e docs: fix typos (#3054) 2022-04-19 19:34:24 -03:00
Carlos A Becker 16f7e0d172 docs: clarify release.skip behavior
It skips the entire SCM release, not  only the artifact upload.

Closes #3051

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-19 09:06:12 -03:00
dependabot[bot] 8dc34370d3 chore(deps): bump anchore/sbom-action from 0.10.0 to 0.11.0 (#3050)
Bumps [anchore/sbom-action](https://github.com/anchore/sbom-action) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/anchore/sbom-action/releases)
- [Commits](https://github.com/anchore/sbom-action/compare/407a3ec314b07e326eff3ba171091cbc150460a8...bb716408e75840bbb01e839347cd213767269d4a)

---
updated-dependencies:
- dependency-name: anchore/sbom-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-18 10:22:05 -03:00
Carlos A Becker a53afde02a docs: update
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
v1.8.2
2022-04-16 15:37:42 -03:00
Albert Salim 50fb252272 test: change test docker registry port numbers (#3046)
Port 5000 is used by MacOS Monterey for
Airplay Receiver by default.
2022-04-16 15:33:17 -03:00
Carlos A Becker 0ba753c496 fix: man pages
closes #3048

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-16 15:31:43 -03:00
Carlos A Becker dbf2d0e293 fix: brew formula default goamd64
Was defaulting to v2 instead of v1.

closes #3049

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-16 15:26:14 -03:00
Carlos A Becker 3663ec1b13 test: goamd64 tests
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
v1.8.1
2022-04-15 23:26:25 -03:00
Carlos A Becker d513b708d0 docs: improve goamd64 docs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-15 23:26:15 -03:00
Carlos A Becker 21df724a1e fix: snapcraft and GOAMD64
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-15 23:25:32 -03:00
Carlos A Becker 3e8b848e44 docs: nightlies
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
v1.8.0
2022-04-14 14:57:13 -03:00
Carlos A Becker ed5e20ae0a docs: organize menu a bit
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-14 14:23:59 -03:00
Carlos A Becker d8a283ab87 docs: pluralize
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-14 14:23:09 -03:00
Carlos A Becker bac1ce288b feat(deps): update docker image cosign version
Update to v1.7.2

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-13 23:59:15 -03:00
Carlos A Becker e3a50e7b9d docs: note goamd64 and nfpm conventional file names
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-13 23:44:17 -03:00
Carlos A Becker 2d6e83cf3f fix: nfpm conventional file names with GOAMD64
Fixes conventional file names when using GOAMD64

refs #3016

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-13 23:38:39 -03:00
Carlos A Becker c30339070e fix(snap): incorrect skip due go GOAMD64
the valid arch check was not considering GOAMD64

refs #3016

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-13 23:12:58 -03:00
Carlos Alexandro Becker bdef306b79 fix(ci): dont use krew fork (#3040)
* fix(ci): use setup-krew action instead of go install

also switch back to main krew as my PR was recently released.

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: use go install

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: use go install

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-13 23:00:29 -03:00
Carlos Alexandro Becker 0e149698af fix(ci): misspell action (#3041)
the misspell action is failing, but we can run it through golangci-lint, so, just doing that now.

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-13 22:39:59 -03:00
Carlos Alexandro Becker 1c2a1b56d8 fix: nfpm lintian concurrency issue (#3039)
* fix: nfpm lintian concurrency issue

Several goroutines might touch the lintian file inside dist at the same
time, which might cause weird errors, namely `archive/tar: write too long`.

This PR fixes it by namespacing the file to the package name + arch,
so one goroutine won't touch the work of the other.

It also improves some logs and tests.

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: linter issues

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-13 22:26:58 -03:00
Carlos A Becker 53bbc6546f fix: goamd64 should allow the only range from v1 to v4
It was just allowing v2 and v3 due to some misreading on my side.
This commit fixes it to allow v1, v2, v3 and v4.

refs #3016

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-13 21:30:08 -03:00
Naveen 09c622c226 feat: pin base docker image by sha (#3038)
Pinned dependencies reduce several security risks:

They ensure that checking and deployment are all done with the same software, reducing deployment risks, simplifying debugging, and enabling reproducibility.
They can help mitigate compromised dependencies from undermining the security of the project (in the case where you've evaluated
2022-04-13 15:38:11 -03:00
actions-user 11b4bf1bbc docs: update 2022-04-13 17:43:46 +00:00
Naveen 38ea40c442 fix: set permissions for GitHub actions (#3036)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
2022-04-13 14:42:11 -03:00
dependabot[bot] 4ab2fbfa22 feat(deps): bump golang from 1.18-alpine to 1.18.1-alpine (#3035)
Bumps golang from 1.18-alpine to 1.18.1-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-13 09:38:07 -03:00
dependabot[bot] b0d00f2cff chore(deps): bump stefanzweifel/git-auto-commit-action (#3034)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.14.0 to 4.14.1.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/c4b132ec2c77a21fcab564bd3c92610cee84b894...49620cd3ed21ee620a48530e81dba0d139c9cb80)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-13 09:37:34 -03:00
dependabot[bot] ada44d87af feat(deps): bump github.com/xanzy/go-gitlab from 0.62.0 to 0.63.0 (#3033)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.62.0 to 0.63.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.62.0...v0.63.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-12 09:11:14 -03:00
Carlos Alexandro Becker ce9058ac8c refactor: use context on git exec calls (#3032) 2022-04-12 08:35:19 -03:00
Carlos A Becker 9fc502c18a chore: update jsonschema 2022-04-12 01:09:20 -03:00
Carlos A Becker 700c8a682f fix: nfpm id filter 2022-04-12 01:08:49 -03:00