Skip to content

Commit

Permalink
Add a target for creating a release
Browse files Browse the repository at this point in the history
Allows us to update Terraform config with the new version
  • Loading branch information
george-angel committed Jan 10, 2025
1 parent 75186cc commit ef72c79
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@
generate-mocks:
mkdir -p mocks
mockgen -source=ping.go -destination=mocks/mock_ping.go -package=mocks

.PHONY: release
release:
@sd '(default\s*=\s*").+(" # MAKE_RELEASE_MARKER)' '$${1}$(VERSION)$${2}' $$(rg -l '# MAKE_RELEASE_MARKER' terraform/)
@git add -- terraform/
@git commit -m "Release $(VERSION)"
@sd '(default\s*=\s*").+(" # MAKE_RELEASE_MARKER)' '$${1}latest${2}' $$(rg -l '# MAKE_RELEASE_MARKER' terraform/)
@git add -- terraform/
@git commit -m "Clean up release $(VERSION)"

0 comments on commit ef72c79

Please sign in to comment.