diff --git a/Makefile b/Makefile
index bc85ddf6d000578048c98189ade5adfd8b88a33e..84e4c1b3b76a64c18ee8a343679aebfd3b8be455 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