New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archives arbitrary project files without binaries #3085
Comments
this seems like a good idea... what do you think the API should look like? |
Is it possible to make it so that the existing archives:
-
id: terraform
builds:
name_template: "{{ .ProjectName }}_{{ .Version }}_terraform"
files:
- terraform/*
allow_different_binary_count: true I'm not sure if that'd cause any issues for existing users, but it seems like logical configuration to create an archive, without any builds within it. |
it is not, when empty it defaults to all builds it might work with |
Sadly it doesn't work as at least one artifact is required in order for the archives to be generated: goreleaser/internal/pipe/archive/archive.go Lines 85 to 108 in 8b0fa0c
|
ah, so maybe we can add an option like |
adds support for creating meta archives closes #3085 Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
adds support for creating meta archives closes #3085 Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
please see #3093 |
I've checked out that branch and tested it - It looks like it does exactly what I want - Thanks! |
adds support for creating meta archives closes #3085 Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is your feature request related to a problem? Please describe.
We'd like to be able to publish the terraform module to our GitLab terraform registry for our Go project as part of GoReleaser. This requires archiving our terraform module directory and uploading it to GitLab.
Describe the solution you'd like
I'd like to be able to create an archive from arbitrary files within the repository, without requiring a binary to be bundled with the archive. For example:
Describe alternatives you've considered
I've considered using a custom publisher which contains a script to archive + push to the terraform registry however this would become quite cumbersome to use as it'd require copying the script across numerous repositories with the same code.
Search
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: