fix: Try to separate tag and push tasks
This commit is contained in:
		
							parent
							
								
									ef0e8d54d3
								
							
						
					
					
						commit
						39ebe75e18
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -45,8 +45,9 @@ deploy_to_registry:
 | 
				
			||||||
  stage: push_image
 | 
					  stage: push_image
 | 
				
			||||||
  image: "docker:19.03.12"
 | 
					  image: "docker:19.03.12"
 | 
				
			||||||
  services:
 | 
					  services:
 | 
				
			||||||
  - name: docker:19.03.12-dind
 | 
					    - name: docker:19.03.12-dind
 | 
				
			||||||
  only: tags
 | 
					  only:
 | 
				
			||||||
 | 
					    - tags
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
    - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
 | 
					    - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
 | 
				
			||||||
    - docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
 | 
					    - docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue