Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support standard and Docker Gitlab-Runner #3

Open
bemeyert opened this issue Aug 1, 2019 · 1 comment
Open

Support standard and Docker Gitlab-Runner #3

bemeyert opened this issue Aug 1, 2019 · 1 comment

Comments

@bemeyert
Copy link
Contributor

bemeyert commented Aug 1, 2019

Currently only the Docker Gitlab-Runner is supported. But we use at least two. Runner as Docker (Rancher) or standard Runner using DIND (Agile).

Both should be supported.

@discotroll
Copy link

I've added or altered the following files

.gitlab-ci.yml
`services:

  • docker:dind

variables:
DOCKER_TLS_CERTDIR: ''
DOCKER_DRIVER: overlay`

Makefile

deploy: ## Deploy stack # Build #@GITLAB_RUNNER_ID="$(shell docker ps -q -f "label=com.gitlab.gitlab-runner.job.id=$(CI_JOB_ID)" --format '{{.Names}}' )" @docker-compose \ -p novoconnect_fe_deploy_$(VERSION)_$(CI_PIPELINE_ID) \ -f ops/docker-compose.ops.yaml \ build \ --force-rm \ --no-cache \ --pull \ deploy-$(ENVIRONMENT) # Run @mkdir ./artifacts #@GITLAB_RUNNER_ID="$(shell docker ps -q -f "label=com.gitlab.gitlab-runner.job.id=$(CI_JOB_ID)" --format '{{.Names}}' )" @ops/trap_command.sh \ "docker-compose -p novoconnect_fe_deploy_$(VERSION)_$(CI_PIPELINE_ID) -f ops/docker-compose.ops.yaml run --rm -e VERSION=$(VERSION) deploy-$(ENVIRONMENT)" \ "docker-compose -p novoconnect_fe_deploy_$(VERSION)_$(CI_PIPELINE_ID) -f ops/docker-compose.ops.yaml down -v --remove-orphans"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants