1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
Commit Graph

1835 Commits

Author SHA1 Message Date
Albert Salim
8cd15a3404 doc: Update doc for image templates
Updated docker documentation to use `image_templates`.
Added documentation on publishing to multiple registries
using `image_templates`
Added deprecation notices on `docker.image` and `docker.tag_templates`
2018-10-20 13:15:15 -03:00
Albert Salim
b688e1f28c feat: Add support image templates with backward compatibility
Docker pipe supports either image templates or image with tag templates.
Image template must be configured, no default is provided.
If image name is still used, provide default for tag templates,
for backward compatibility.
2018-10-20 13:15:15 -03:00
Albert Salim
5af006f415 refactor: Simplify docker test
Remove unnecessary fields in `TestRunPipe` test cases
2018-10-20 13:15:15 -03:00
Albert Salim
64ce2d5bd6 chore: Remove unused function 2018-10-20 13:15:15 -03:00
Albert Salim
ae2e6ddc0e feat: Add support image templates
Docker config takes a list of image templates as image specification.
Existing config with image and tag templates are still accepted,
but will display deprecation notice.

Either image templates or image + tag templates is supported,
but not both at the same time.

This will also support publishing to multiple docker registries (#832).

Deprecated:
- `docker.image`
- `docker.tag_templates`
2018-10-20 13:15:15 -03:00
Albert Salim
ca2aafa367 feat: Add support for publishing to additional docker registries
Created a list of registries based on the docker image name and
additional registries. Image is then tagged with all permutations
of registry and tags.

See #832
2018-10-20 13:15:15 -03:00
Carlos Alexandro Becker
db70569c3d
docs: dry run
closes #839
2018-10-17 00:41:40 -03:00
Carlos Alexandro Becker
748869c83b
fix: example indentation 2018-10-16 23:09:37 -03:00
Carlos Alexandro Becker
2bade44c73 refactor: artifactory: pipe -> publisher 2018-10-16 23:01:52 -03:00
Carlos Alexandro Becker
ad11351902 refactor: fix tests 2018-10-16 22:20:53 -03:00
Carlos Alexandro Becker
089731afc4 refactor: (s3/http): pipe -> publisher 2018-10-16 22:20:53 -03:00
Carlos Alexandro Becker
0b04e454fc test: fix 2018-10-16 22:20:53 -03:00
Carlos Alexandro Becker
dd81fec3dd refactor: release: pipe -> publisher 2018-10-16 22:20:53 -03:00
Carlos Alexandro Becker
6d6d6ece8f test: add more tests 2018-10-12 14:55:04 -03:00
Carlos Alexandro Becker
23eb2c7756 fix: publish skip handling 2018-10-12 14:55:04 -03:00
Carlos Alexandro Becker
c449328428 fix: improved publish output 2018-10-12 14:55:04 -03:00
Carlos Alexandro Becker
5474d1ede7 wip: publish 2018-10-12 14:55:04 -03:00
Carlos Alexandro Becker
441e5e551f
docs: docker: improved notes about templates 2018-10-12 00:08:39 -03:00
Carlos Alexandro Becker
71aba28e18 chore: more logs 2018-10-10 13:27:53 -03:00
Carlos Alexandro Becker
9628eb8f89 chore: improved log output 2018-10-10 13:27:53 -03:00
Alan Scherger
6c79a6c51a fix: be explicit when we query git for tags
When Jenkins is configured with 'Check out to matching local branch' the branch and tag name will conflict.
If we use explicit references to tags, then life is much better.

This patch also replaces our manual 'tag or not' boolean with a regex to check if the return is a SHA1.
If it is not a SHA1, it is assumed to be a tag. Hopefully this helps with future maintainability.
2018-10-06 22:21:46 -03:00
Alan Scherger
f6a7fb308c feat: image names can ontain template variables
This now allows us to use things like the ProjectName as variables
in our docker image name. This is especially helpful when trying to
make the `.goreleaser.yml` as generic as possible.
2018-10-05 13:43:19 -03:00
Carlos Alexandro Becker
09ee5d9e7d fix: docker: go1.11 and no-install-recommends 2018-10-05 11:13:05 -03:00
Carlos Alexandro Becker
ba77abe07c chore: make output less verbose 2018-10-05 10:38:16 -03:00
Carlos Alexandro Becker
6a035b83e9 chore: make output less verbose 2018-10-05 10:38:16 -03:00
Carlos Alexandro Becker
3c72ad1081 chore: make output less verbose 2018-10-05 10:38:16 -03:00
Carlos Alexandro Becker
71171ba222 chore: make output less verbose 2018-10-05 10:38:16 -03:00
Carlos Alexandro Becker
71df84f829 refactor: added publish pipe 2018-10-05 09:42:32 -03:00
Carlos Alexandro Becker
f99940ff53
docs: removed docs about deprecated option 2018-10-04 23:42:25 -03:00
Carlos Alexandro Becker
5c63f88290 test: add more tests 2018-10-04 23:23:31 -03:00
Carlos Alexandro Becker
748d97ef22 feat: git remote url in the template engine 2018-10-04 23:23:31 -03:00
Carlos Alexandro Becker
01189ba02b fix: improve goreleaser init 2018-10-04 22:37:27 -03:00
Carlos Alexandro Becker
c6c4df6d1c docs: deploy on tags only 2018-10-04 22:37:13 -03:00
Carlos Alexandro Becker
e08cc50030 docs: improve docs on go modules usage 2018-10-04 22:36:02 -03:00
Carlos Alexandro Becker
60b0bc2416 fix: add deprecation notice 2018-10-04 09:23:06 -03:00
Carlos Alexandro Becker
af99acf244 feat: add new template fields 2018-10-04 09:23:06 -03:00
Albert Salim
5c504024b1 docs: Add documentation for docker build_flag_templates
See #813
2018-10-03 10:51:01 -03:00
Albert Salim
94f88bac84 feat: Add templating support for docker build-flags
I enhanced `BuildFlagTemplates` field in Docker image config to accept
templates. Build flags are tested by checking for images created with
labels applied through templates.

See #813
2018-10-03 10:51:01 -03:00
Albert Salim
c773e57165 feat: Add support for docker build-flags
I added `BuildFlags` field to Docker image config. Docker pipe is
updated to append build flags to the `docker build` command.
Build flags are not validated, leaving it Docker to error
when given an unknown flag.

See #813
2018-10-03 10:51:01 -03:00
Stuart Jansen
282fd74450 fix customization link (#818)
Repro:
 - Open https://goreleaser.com/ in Chrome or Firefox
 - Click on "customize" in the second paragraph
Expected:
 - The page jumps to "Customization"
Actual:
 - No change because no matchin `name` or `id` is found
2018-10-03 08:46:06 -03:00
ncabatoff
9c1a37e00a docs: Add instructions for using with Google CloudBuild. (#780)
* Add instructions for using with Google CloudBuild.

* Clarify tag issues.
2018-10-02 11:14:40 -03:00
Igor German
9541ed6fef fix: typo (#815) 2018-10-02 09:09:36 -03:00
Carlos Alexandro Becker
652645b3bf
feat: artifactory checksum header (#772)
* feat: artifactory checksum header

* fix: merge fixes
2018-10-01 16:52:16 -03:00
Carlos Alexandro Becker
aded99f621
feat: scoop: accept name/project name (#811)
* feat: scoop: accept name/project name

* fix: added todo to fix an issue
2018-09-30 11:04:32 -03:00
Carlos Alexandro Becker
08e0830979
docs: improve flags example
closes #810
2018-09-20 17:44:25 -03:00
Carlos Alexandro Becker
0ebf43a0fd
chore: go fmt 2018-09-19 13:52:23 -03:00
He Liu
281632fe6c fix: github.com/Masterminds/semver import path (#808)
* fix import path casing in Mastermind/semver

* fix import path in Gopkg.lock
2018-09-19 13:51:52 -03:00
Carlos Alexandro Becker
4206de324e
fix: added more logs 2018-09-18 10:14:30 -03:00
Ricardo N Feliciano
065bab60a4 docs: Removed EOL'd CircleCI 1.0 instructions. 2018-09-17 11:34:56 -03:00
Carlos Alexandro Becker
817f0a7a13 fix: remove go generate 2018-09-16 21:46:21 -03:00