Skip to content

Commit

Permalink
Set GORELEASER_CURRENT_TAG for goreleaser (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
divolgin authored Oct 25, 2024
1 parent dbbc2a7 commit 03bda80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dagger/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ func (r *Replicated) Release(

goreleaserContainer := dag.Goreleaser(dagger.GoreleaserOpts{
Version: goreleaserVersion,
}).Ctr().WithSecretVariable("GITHUB_TOKEN", githubToken)
}).Ctr().
WithSecretVariable("GITHUB_TOKEN", githubToken).
WithEnvVariable("GORELEASER_CURRENT_TAG", latestVersion)

if snapshot {
_, err := dag.
Expand Down

0 comments on commit 03bda80

Please sign in to comment.