refactor: drop make deploy and its refs/deploy stamps, the fleet deploys from infra/komodo; short readme
This commit is contained in:
1 parent
ea78a12a83
commit
c573c1b1e8
3 files changed
+4
-29
No files matched your search
@@ -1,9 +1,6 @@
|
||||
COMPOSE := {% if layout == 'part' %}cd .. && {% endif %}docker compose
|
||||
IMAGE := {{ project_slug | replace('_', '-') }}/{{ part }}
|
||||
changed = ! git diff --quiet $(1) -- $(2) 2>/dev/null
|
||||
stamp = { git update-ref $(1) HEAD 2>/dev/null || true; }
|
||||
|
||||
.PHONY: {% if layout == 'root' %}env recreate rebuild restart logs down deploy {% endif %}fmt check build pre-deploy post-deploy
|
||||
.PHONY: {% if layout == 'root' %}env recreate rebuild restart logs down {% endif %}fmt check build
|
||||
|
||||
fmt:
|
||||
@:
|
||||
@@ -13,14 +10,6 @@ check:
|
||||
|
||||
build:
|
||||
$(COMPOSE) build {{ service }}
|
||||
|
||||
pre-deploy:
|
||||
@if $(call changed,refs/deploy/{{ part }},.) || ! docker image inspect $(IMAGE) >/dev/null 2>&1; then \
|
||||
$(MAKE) build && $(call stamp,refs/deploy/{{ part }}); \
|
||||
fi
|
||||
|
||||
post-deploy:
|
||||
@:
|
||||
{% if layout == 'root' %}
|
||||
env:
|
||||
@fresh=; test -f .env || { cp .env.example .env; fresh=1; }; \
|
||||
@@ -47,8 +36,4 @@ logs:
|
||||
|
||||
down:
|
||||
$(COMPOSE) down
|
||||
|
||||
deploy: pre-deploy
|
||||
$(COMPOSE) up -d
|
||||
$(MAKE) post-deploy
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user