Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6m16s
22 lines
572 B
Makefile
22 lines
572 B
Makefile
# =====================
|
|
# 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;
|