Skip to content
Snippets Groups Projects
Commit bc028aca authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Detect and move local_settings.py when releasing

parent 92fd2de1
No related branches found
No related tags found
1 merge request!136Detect and move local_settings.py when releasing
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment