diff --git a/.gitea/workflows/build-and-push.yml b/.gitea/workflows/build-and-push.yml index 0d1ccba..faf5ea3 100644 --- a/.gitea/workflows/build-and-push.yml +++ b/.gitea/workflows/build-and-push.yml @@ -26,6 +26,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a13eb36 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +# ===================== +# Build new application +# ===================== + + +.PHONY: tag-build +tag-build: ## DEV : Build a prod version with a timestamped tag + @export TIMESTAMP=build_`date +"%G-%m-%d_%Hh%M"`; \ + echo TAG = $$TIMESTAMP; \ + git tag $$TIMESTAMP; \ + git push origin $$TIMESTAMP; + +# =============== +# Deployment tags +# =============== + +.PHONY: tag-deploy +tag-deploy: ## DEV : Set tag to current HEAD to deploy in production + @export TIMESTAMP=deploy_`date +"%G-%m-%d_%Hh%M"`; \ + echo TAG = $$TIMESTAMP; \ + git tag $$TIMESTAMP; \ + git push origin $$TIMESTAMP;