1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00
Commit Graph

705 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
bf19dc1079
feat: moving some cmd logs to debug (#2359)
* feat: moving some cmd logs to debug

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

* feat: moving some cmd logs to debug

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-23 12:09:29 +01:00
Carlos Alexandro Becker
73641c71ac
feat: file mappings in archives (#2347)
* refactor: archive files

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

* feat: better archives

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

* feat: better archives

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

* fix: test todos

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

* fix: go mod tidy et al

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

* fix: improve docs and remove typoe 'licence' from defaults

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

* test: fixes

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

* fix: error string

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

* test: remove some logs

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

* test: use utc

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-21 22:09:02 -03:00
msvechla
5bcfa9042d
fix new gitlab releases throwing 404 due to API change #2334 (#2335) 2021-07-06 10:42:56 +02:00
Carlos A Becker
9333f80ad4
fix: improve docker logs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-04 01:52:59 +00:00
Carlos A Becker
d4a455fc5a
test: header/footer invalid templates
refs #2326

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-03 19:23:51 +00:00
zhouhaibing089
bffa7e5e2f
feat: template header and footer (#2326)
A continuation of #2267 - the header and footer in release configuration
can be templatized as well to support more use cases like attaching
published docker image information(without using docker pipe).
2021-07-03 13:42:54 -03:00
Carlos Alexandro Becker
91848616e3
refactor(docker): preparing for multiple backends (#2319)
* refactor(docker): preparing for multiple backends

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

* fix: remove pro test

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

* fix: merge issues

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

* fix: merge issues

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

* fix: merge issues

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-27 17:55:00 -03:00
Carlos A Becker
32a44ab928
fix(docker_manifest): improve logs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-27 00:29:26 +00:00
Carlos A Becker
52a64c7405
fix: fury upload
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 22:16:54 +00:00
Carlos Alexandro Becker
560938152a
feat: remove some nfpm deprecated options (#2315)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 16:52:18 -03:00
Carlos A Becker
afc7d85688
docs: improve gitlab projectid readme
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 19:46:16 +00:00
Jesse Quinn
92a4afb169
feat(gitlab): use project id (#2297)
* feat: use project id

* fix: missing slash.

* Added comment.

* Added a comment

Signed-off-by: Jesse Quinn <jesse.quinn@zpesystems.com>

* Added a comment

Signed-off-by: Jesse Quinn <me@jessequinn.info>

Co-authored-by: Jesse Quinn <jesse.quinn@zpesystems.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-06-26 16:44:24 -03:00
Carlos Alexandro Becker
1883ed4a73
refactor: preparing for other docker implementations (#2314)
* wip: podman

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

* refactor: preparing for other docker implementations

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

* refactor: preparing for other docker implementations

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

* fix: log

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

* fix: use buildx

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

* test: cover

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

* fix: lint

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 16:36:31 -03:00
Carlos A Becker
c5bcff2b00
feat: scoop formula path
closes #2310

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 17:14:42 +00:00
Carlos A Becker
a0dd45592e
fix: packaging with build.binary with subdir
Saving again the full path of the binary in the artifact name, if needed, we can filepath.Base it and get the name only.

refs #2280
closes #2311

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 16:57:10 +00:00
Olivier Poitrey
3db788bba5
feat(nfpm): add support for APK pre/post upgrade scripts (#2308) 2021-06-20 14:34:09 -03:00
Carlos Alexandro Becker
e437344718
feat: docker_manifests.skip_push (#2302)
* feat: docker_manifests.skip_push

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

* fix: lint

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

* test: fix

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-16 23:00:08 -03:00
Carlos Alexandro Becker
10f3021afe
fix: empty build.tags and build.ldflags (#2301)
* refactor: build go build cmd line

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

* fix: build.tags

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

* refactor: improve test code

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

* refactor: improve test code

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-16 20:41:52 -03:00
Carlos A Becker
d676964938
test: fix gomod test
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-16 03:17:36 +00:00
Carlos Alexandro Becker
b53dbb89d0
feat: remove :latest imgs from release notes (#2287)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-08 14:11:27 +00:00
Carlos Alexandro Becker
c49c771220
feat: builds. no_unique_dist_dir (#2280)
* Implemented build option output_path

* feat: output path renamed to dist_path

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

* fix: CR

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

* fix: binary name

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

Co-authored-by: Thomas Meckel <tmeckel@users.noreply.github.com>
2021-06-06 19:44:24 -03:00
Carlos Alexandro Becker
bad1132e78
feat: --auto-snapshot on dirty git tree (#2286)
* feat: --auto-snapshot

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

* docs: fix

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

* fix: workflow

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-04 23:09:12 -03:00
Carlos A Becker
39e5792993
fix: env templates
closes #2281

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-04 18:11:29 +00:00
Carlos A Becker
e25b6bb313
test: docker image template test cases
for #2281

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-04 00:12:47 +00:00
Carlos Alexandro Becker
aa518027b4
fix(publishers): inherit some system variables (#2277) 2021-06-02 15:05:54 -03:00
Carlos A Becker
752d8653ff
fix: move log back to debug
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-01 10:58:02 +00:00
Carlos Alexandro Becker
f4e79655a7
feat(nfpm): template homepage and description (#2272)
* feat(nfpm): template homepage and description

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

* chore: fumpt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-31 21:59:46 -03:00
Carlos Alexandro Becker
2375c93359
feat: build tags (#2268)
* feat: build tags

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

* fix: quotes

Co-authored-by: Lukas Malkmus <lukasmalkmus@users.noreply.github.com>

Co-authored-by: Lukas Malkmus <lukasmalkmus@users.noreply.github.com>
2021-05-31 13:47:39 -03:00
Carlos A Becker
b28b203af4
fix(brew): depends_on arch
closes #2270

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-31 16:44:58 +00:00
Carlos Alexandro Becker
3ca9e6d4dc
feat(nfpm): allow to template contents.dst (#2269)
* feat(nfpm): allow to template contents.dst

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

* fix: revert unwanted change

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

* fix: gofumpt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-31 00:28:11 -03:00
Carlos A Becker
ce7d3b0e89
test: default values for envs
refs #1795

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-31 01:53:40 +00:00
Carlos A Becker
64c73d7eba
fix(gitea): do not overwrite existing release notes
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-31 01:25:29 +00:00
Carlos Alexandro Becker
4d0c0d2072
feat: release header/footer (#2267)
* feat: release header/footer

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

* feat: release header/footer

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

* refactor: using the golden library all over

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

* fix: lint

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

* fix: brew arm tests

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

* fix: use footer

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-30 21:53:40 -03:00
Carlos Alexandro Becker
e2c93f5f39
fix: improve brew formula (#2261)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-30 14:25:25 -03:00
Carlos A Becker
3843761902
fix(snap): do not fail with "NEEDS REVIEW" message
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-26 14:39:11 +00:00
Carlos Alexandro Becker
2e376ef378
chore(lint): enable revive
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-05-25 16:49:49 -03:00
Carlos Alexandro Becker
a2d7ccad2f
feat: --skip-announce (#2249) 2021-05-25 00:45:59 -03:00
Carlos Alexandro Becker
f0f7f43486
feat: announce to twitter (#2248)
Co-authored-by: Leon Wright <wrightleo@jncb.com>
2021-05-25 00:19:06 -03:00
Carlos Alexandro Becker
9fbaf5e3e1
feat: env template support (#2246) 2021-05-24 23:23:59 -03:00
Evan Older
d521343b06
feat: Scoop pipe - Write the manifest before skips, like Brew pipe. (#2241)
* feat: Scoop pipe - Write the manifest before skips, like Brew pipe.

feat: Scoop pipe - Added tests and fixed the write path of the manifest.

* Update scoop.go

Co-authored-by: eolder <eolder@rajant.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-05-24 17:30:31 +00:00
Carlos Alexandro Becker
9913fe7db6
feat: template release notes (#2242)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-21 21:07:47 -03:00
Carlos Alexandro Becker
2d136c4c90
feat: allow to template signs[].signature (#2236) 2021-05-21 14:49:07 -03:00
Carlos Alexandro Becker
7cfa2c4777
feat: fine grained sign (#2235) 2021-05-21 11:16:15 -03:00
Carlos A Becker
00b76540ca
fix(snap): ignore human review error msg
closes #2194

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-21 02:53:22 +00:00
Carlos Alexandro Becker
d08b767975
fix: revert "fix: skip releasing to brew when skipping publishing" (#2233)
This reverts commit c85472a20f.
2021-05-20 23:24:44 -03:00
Marc Auberer
8db935ff15
feat: add support for name templates to NFPM contents (#2229) 2021-05-20 14:21:48 -03:00
Matt Palmer
bf4359017b
feat: Use GitLab Direct Asset Links (#2219)
* feat: Use GitLab Direct Asset Links

Implement the use of Direct Asset Links when uploading artifacts to a GitLab release

* fix: Remove ArtifactUploadHash

As GitLab support for direct asset linking exists, remove ArtifactUploadHash due to it no longer being required

* test: fix unit tests for gitlab urls

* fix: Use artifact name during GitLab upload

file.Name() included the path to the file, which isn't needed and breaks other areas such as homebrew releases

* docs: Require GitLab version v12.9+

Due to newly introduced dependency on direct asset linking
2021-05-17 17:33:04 +00:00
Kareem March
a9ce8f89d4
fix: allow underscores in formula name (#2205)
* fix: allow underscores in formula name

I was trying to create two formulas per release. One signifying the latest and
another with the version explicitly: formula.rb and formula@v0.0.0.rb

The filenames are fine but the formula name for the explicit version
was created as FormulaATv0.0.0 which isn't valid Ruby.

Looking at the function history I couldn't find why underscores were being replaced
since underscores are valid for Ruby identifiers. I opted to replace dots in a formula with
underscores

- 1399a39603
- https://ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/syntax.html#ident

* test: add test for version in formula name

I think underscores are removed to make the Formula name cleaner

* test: re-add old test
2021-05-11 04:50:17 +00:00
Franky W
c85472a20f
fix: skip releasing to brew when skipping publishing (#2193)
This fixes an issues that causes builds to still try to release to brew
even though the `--skip-publish` flag was passed
2021-05-02 14:37:15 +00:00
Cristian Ciutea
a86a9956de
feat: add %pretrans %posttrans scriptlets (#2191)
* tmp changed nfpm dep to fork

* added rpm pretrans and posttrans scriptlets

* cleanup gomod

* docs: added pretrans and posttrans examples in nfpm.md

* added test for rpm pretrans and posttrans scriptlets
2021-04-28 13:01:03 +00:00