From bc028aca7688ac3cb9d9c1a554407c5e7c5dce20 Mon Sep 17 00:00:00 2001 From: Erwan Rouchet <rouchet@teklia.com> Date: Tue, 23 Oct 2018 11:56:40 +0200 Subject: [PATCH] Detect and move local_settings.py when releasing --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index bc85ddf6d0..84e4c1b3b7 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,10 @@ build: docker build $(ROOT_DIR) -t $(TAG_APP):$(VERSION) -t $(TAG_APP):latest --build-arg FRONTEND_BRANCH=$(FRONTEND_BRANCH) publish-version: require-docker-auth + [ -f $(ROOT_DIR)/arkindex/project/local_settings.py ] && mv $(ROOT_DIR)/arkindex/project/local_settings.py $(ROOT_DIR)/arkindex/project/local_settings.py.bak || true $(MAKE) build TAG_APP=registry.gitlab.com/arkindex/backend docker push registry.gitlab.com/arkindex/backend:$(VERSION) + [ -f $(ROOT_DIR)/arkindex/project/local_settings.py.bak ] && mv $(ROOT_DIR)/arkindex/project/local_settings.py.bak $(ROOT_DIR)/arkindex/project/local_settings.py || true latest: $(MAKE) publish-version VERSION=latest -- GitLab