Skip to content
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

Implement --auto-snapshot for build command too #4891

Closed
1 of 3 tasks
bersace opened this issue May 24, 2024 · 1 comment · Fixed by #4917
Closed
1 of 3 tasks

Implement --auto-snapshot for build command too #4891

bersace opened this issue May 24, 2024 · 1 comment · Fixed by #4917
Assignees
Labels
enhancement New feature or request

Comments

@bersace
Copy link

bersace commented May 24, 2024

Is your feature request related to a problem? Please describe.

Hello,

Thanks for goreleaser !

I use goreleaser in a Dockerfile. I'm building both snapshot and release. I use goreleaser build instead of release to use --single-target. However, there I need to workaround the miss of --auto-snapshot available in release command.

Describe the solution you'd like

I'd like to use gorelease build --clean --single-target --auto-snapshot.

Describe alternatives you've considered

I work around using a script:

RUN if git describe --tags --exact-match; then \
    goreleaser build --clean --single-target; \
    else \
    goreleaser build --clean --single-target --snapshot ; \
    fi

Search

  • I did search for other open and closed issues before opening this

Supporter

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@bersace bersace added enhancement New feature or request triage Issue pending triage by one of the maintainers labels May 24, 2024
@caarlos0 caarlos0 removed the triage Issue pending triage by one of the maintainers label Jun 6, 2024
caarlos0 added a commit that referenced this issue Jun 6, 2024
caarlos0 added a commit that referenced this issue Jun 11, 2024
@bersace
Copy link
Author

bersace commented Jun 11, 2024

You're awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants