Commit f095986a authored by Tommy Svendsen's avatar Tommy Svendsen
Browse files

DEICH-3487 add option to manually build all and build all when tagging

parent f5101776
......@@ -34,6 +34,23 @@
- make build-${APPLICATION_NAME}
stage: build
build-all:
stage: build
script:
- echo -n "Building all"
- make build-all
only:
refs:
- tags
build-all-manual:
stage: build
script:
- echo -n "Building all"
- make build-all
when: manual
build-authorization-server:
variables:
APPLICATION_NAME: authorization-server
......
......@@ -123,16 +123,12 @@ remote-deploy: | check-ssh_user check-ssh_servers check-job_id check-deploy_tag
scp docker-compose.yml $(ssh_user)@$$server:deployments/$(job_id)/deichman/; \
ssh $(ssh_user)@$$server "cd deployments/$(job_id)/deichman && TAG=$(deploy_tag) docker-compose pull $(CONTAINER) && TAG=$(deploy_tag) docker-compose up -d $(CONTAINER)"; \
done
ifdef voting_node
remote-deploy-voting: | check-ssh_user check-deploy_tag
ifdef voting_node
ssh $(ssh_user)@$(voting_node) "cd \$$DEPLOYMENT_CONFIG_LOCATION/ && COMPOSE_PROJECT_NAME=deichman TAG=$(deploy_tag) docker-compose -f \$$DEPLOYMENT_CONFIG_LOCATION/../debvoter/docker-compose.yml up -d";
else
remote-deploy-voting:
endif
remote-deploy-voter:
ssh $(ssh_user)@$$server "cd \$$DEPLOYMENT_CONFIG_LOCATION/ && COMPOSE_PROJECT_NAME=deichman TAG=$(deploy_tag) docker-compose -f \$$DEPLOYMENT_CONFIG_LOCATION/debvoter/docker-compose.yml config"
remote-docker-command:
ssh $(ssh_user)@$(ssh_server) "cd ./deployments/$(job_id)/deichman && docker-compose exec -T $(CONTAINER) $(cmd)"
......@@ -164,3 +160,7 @@ push-all: | check-TAG
docker tag digibib/$$service digibib/$$service:$(TAG) ; \
docker push digibib/$$service ; \
done
build-all:
docker-compose build
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment