Merge branch 'semantic-release-docker' into 'master'
chore: Make docker daemon available throughout pipeline See merge request mythic-insight/legendary!26
This commit is contained in:
		
						commit
						b29614d3f1
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -12,15 +12,15 @@ variables:
 | 
				
			||||||
  POSTGRES_USER: "postgres"
 | 
					  POSTGRES_USER: "postgres"
 | 
				
			||||||
  DATABASE_URL: "postgres"
 | 
					  DATABASE_URL: "postgres"
 | 
				
			||||||
  MIX_ENV: "test"
 | 
					  MIX_ENV: "test"
 | 
				
			||||||
 | 
					  DOCKER_TLS_CERTDIR: "/certs"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
- name: postgres:12
 | 
					- name: postgres:12
 | 
				
			||||||
 | 
					- name: docker:19.03.12-dind
 | 
				
			||||||
 | 
					
 | 
				
			||||||
prebuild:
 | 
					prebuild:
 | 
				
			||||||
  stage: prebuild_and_test
 | 
					  stage: prebuild_and_test
 | 
				
			||||||
  image: "docker"
 | 
					  image: "docker"
 | 
				
			||||||
  services:
 | 
					 | 
				
			||||||
    - docker:19.03.12-dind
 | 
					 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
    - docker pull $CI_REGISTRY_IMAGE:latest || true
 | 
					    - docker pull $CI_REGISTRY_IMAGE:latest || true
 | 
				
			||||||
    - docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE .
 | 
					    - docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE .
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue