We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c35bf14 commit b83b05dCopy full SHA for b83b05d
1 file changed
Makefile
@@ -23,3 +23,15 @@ build-docker:
23
publish-docker: build-docker
24
docker tag dbmigrate:latest choonkeat/dbmigrate
25
docker push choonkeat/dbmigrate
26
+
27
+release:
28
+ifndef RELEASE_VERSION
29
+ $(error RELEASE_VERSION is required. Usage: make release RELEASE_VERSION=3.0.1)
30
+endif
31
+ git diff --quiet || (echo "Error: uncommitted changes. Commit or stash first." && exit 1)
32
+ git push origin master
33
+ git tag v$(RELEASE_VERSION)
34
+ git push origin v$(RELEASE_VERSION)
35
+ @echo ""
36
+ @echo "Released v$(RELEASE_VERSION)"
37
+ @echo "Docker image will be built by GitHub Actions: choonkeat/dbmigrate:$(RELEASE_VERSION)"
0 commit comments