Skip to content

Commit

Permalink
Fix new-release target
Browse files Browse the repository at this point in the history
  • Loading branch information
ristomcgehee committed May 9, 2023
1 parent cf9db13 commit 3fed76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ docker-build:
new-release:
@LATEST_RELEASE=$$(git tag | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$$' | sort -V | tail -n 1);\
NEW_RELEASE=$$(echo $$LATEST_RELEASE | awk -F. -v OFS=. '{$$3++;print}');\
sed -i "s/const appVersion = \"v[0-9]*\.[0-9]*\.[0-9]*\"/const appVersion = \"$$NEW_RELEASE\"/g" main.go
sed -i "s/const appVersion = \"v[0-9]*\.[0-9]*\.[0-9]*\"/const appVersion = \"$$NEW_RELEASE\"/g" main.go;\
git add main.go;\
git commit -m "Bump version to $$NEW_RELEASE";\
git push;\
git tag $$NEW_RELEASE;\
echo "Creating new release: $$NEW_RELEASE"
echo "Creating new release: $$NEW_RELEASE";\
git push --tags

integration-tests: check-env docker-build
Expand Down

0 comments on commit 3fed76d

Please sign in to comment.