Skip to content
Snippets Groups Projects
Commit 393048aa authored by David Trattnig's avatar David Trattnig
Browse files

feat(make): add release target

parent 011954bb
No related branches found
No related tags found
No related merge requests found
Pipeline #2923 passed
...@@ -11,6 +11,7 @@ help:: ...@@ -11,6 +11,7 @@ help::
@echo " log - tail log file" @echo " log - tail log file"
@echo " run - start app" @echo " run - start app"
@echo " run.gunicorn - start app with gunicorn" @echo " run.gunicorn - start app with gunicorn"
@echo " release - tags and pushes a release with current version"
$(call docker_help) $(call docker_help)
...@@ -69,4 +70,10 @@ run:: ...@@ -69,4 +70,10 @@ run::
run.gunicorn:: run.gunicorn::
poetry run gunicorn -c config/gunicorn.conf.py aura_engine_api.app:app \ poetry run gunicorn -c config/gunicorn.conf.py aura_engine_api.app:app \
--bind $(AURA_ENGINE_API_HOST):$(AURA_ENGINE_API_PORT) --bind $(AURA_ENGINE_API_HOST):$(AURA_ENGINE_API_PORT)
\ No newline at end of file
release:: VERSION := $(shell python3 -c 'import tomli; print(tomli.load(open("pyproject.toml", "rb"))["tool"]["poetry"]["version"])')
release::
git tag $(VERSION)
git push origin $(VERSION)
@echo "Release '$(VERSION)' tagged and pushed successfully."
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment