1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-29 21:47:01 +02:00
Steve Azzopardi 68ff8e996f
feat: support templates for scm urls (#2465)
Background
---
When a git repository is hosted in multiple GitLab instances the
`.goreleaser.yml` needs to take in consideration both APIs endpoints. At
the moment it defaults to GitLab.com and you can override it with
`gitlab_urls` however this forces you to only support 1 GitLab instance.

We need this for
https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/14122
where we have a tool that is developed on GitLab.com but then mirrored
to an internal GitLab instance since we need it to operate GitLab.com
even when it's down.

Solution
---
Support templates like `{{ .Env.CI_SERVER_URL }}` for the
`gitlab_urls`, `github_urls`  and `gitea_urls` so it can use environment
variables and the same `.goreleaser` file can be used in multiple SCM
instances.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-09-09 01:42:13 +00:00
..
2021-09-06 17:46:23 -03:00
2021-08-10 21:52:32 -03:00
2021-09-07 16:16:50 -03:00
2021-06-21 02:20:34 +00:00
2021-07-09 19:11:09 +00:00
2020-05-10 18:59:21 -03:00
2020-05-10 17:32:55 -03:00
2021-09-03 09:54:29 -03:00
2021-07-10 17:11:37 +00:00
2020-05-10 18:59:21 -03:00
2021-07-03 22:19:16 +00:00
2021-07-12 11:54:29 +00:00
2021-05-26 19:08:46 -03:00