fix: artifact upload
Background
In https://ops.gitlab.net/gitlab-com/gl-infra/jsonnet-tool/-/jobs/4830033 we see the job fails because it tried to publish an artifact.
⨯ release failed after 56.26s error=github/gitlab/gitea releases: failed to publish artifacts: POST https://ops.gitlab.net/api/v4/projects/gl-infra/jsonnet-tool/releases: 404 {message: 404 Project Not Found}
If we look at the error message the repository name is incorrect it
shouldn't be
https://ops.gitlab.net/api/v4/projects/gl-infra/jsonnet-tool/releases
but https://ops.gitlab.net/api/v4/projects/gitlab-com/gl-infra/jsonnet-tool/releases
. It seems like goreleaser
doesn't support nested namespaces (which is GitLab specific).
We tried to fix this in !22 (merged) but then faced a different issue https://gitlab.com/gitlab-com/gl-infra/jsonnet-tool/-/jobs/1579427909
Solution
Set the owner
and name
explicitly since both ops and com is the same
namespace. Then have the CI_SERVER_URL specified.