fixed gitsync

This commit is contained in:
2024-06-07 10:18:53 +02:00
parent 388fc0dd15
commit bf5cc78447

View File

@@ -29,10 +29,10 @@ env:
> .keycloak-env
.PHONY = gitsync
gitsync:
git --git-dir=$(ROOT_DIR)SWA-frontend/.git pull || git --git-dir=$(ROOT_DIR) clone https://git.anxietyprime.de/SWA-Project/SWA-frontend.git
git --git-dir=$(ROOT_DIR)SWA-backend/.git pull || git --git-dir=$(ROOT_DIR) clone https://git.anxietyprime.de/SWA-Project/SWA-backend.git
git --git-dir=$(ROOT_DIR)SWA-database/.git pull || git --git-dir=$(ROOT_DIR) clone https://git.anxietyprime.de/SWA-Project/SWA-database.git
gitsync: remove_dependencies
git --git-dir=$(ROOT_DIR) clone https://git.anxietyprime.de/SWA-Project/SWA-frontend.git
git --git-dir=$(ROOT_DIR) clone https://git.anxietyprime.de/SWA-Project/SWA-backend.git
git --git-dir=$(ROOT_DIR) clone https://git.anxietyprime.de/SWA-Project/SWA-database.git
@echo "done"
.PHONY = build
@@ -59,14 +59,16 @@ keycloak:
@docker tag $(KEYCLOAK_DB_BASE) $(DOCKER_REGISTRY)$(KEYCLOAK_DB)
.PHONY = clean
clean:
@rm -fr $(ROOT_DIR)SWA-frontend $(ROOT_DIR)SWA-backend $(ROOT_DIR)SWA-database
clean: remove_dependencies
@docker image rm $(KEYCLOAK_BASE) || true
@docker image rm $(KEYCLOAK_DB_BASE) || true
.PHONY = remove_dependencies
remove_dependencies:
@rm -fr $(ROOT_DIR)SWA-frontend $(ROOT_DIR)SWA-backend $(ROOT_DIR)SWA-database
.PHONY = uninstall
uninstall:
uninstall: uninstall
@docker network rm -f swa-public || true
@docker network rm -f swa-keycloak || true
@docker network rm -f swa-keycloak-db || true