Fix docker command
This commit is contained in:
		
							parent
							
								
									c786f1d855
								
							
						
					
					
						commit
						31ce0b412b
					
				
					 1 changed files with 12 additions and 12 deletions
				
			
		|  | @ -15,20 +15,20 @@ before_script: | |||
| 
 | ||||
| build-main: | ||||
|   script: | ||||
|     - docker build --cache-from $CI_REGISTRY_IMAGE:stage-src \ | ||||
|       --target src \ | ||||
|       --build-arg BUILDKIT_INLINE_CACHE=1 --pull \ | ||||
|       -t "$CI_REGISTRY_IMAGE:stage-src" \ | ||||
|     - docker build --cache-from $CI_REGISTRY_IMAGE:stage-src | ||||
|       --target src | ||||
|       --build-arg BUILDKIT_INLINE_CACHE=1 --pull | ||||
|       -t "$CI_REGISTRY_IMAGE:stage-src" | ||||
|       -t "$CI_REGISTRY_IMAGE:stage-src-branch-$CI_COMMIT_REF_SLUG" . | ||||
|     - docker build --cache-from $CI_REGISTRY_IMAGE:stage-texlive-update \ | ||||
|       --target texlive-update \ | ||||
|       --build-arg BUILDKIT_INLINE_CACHE=1 --pull \ | ||||
|       -t "$CI_REGISTRY_IMAGE:stage-texlive-update" \ | ||||
|     - docker build --cache-from $CI_REGISTRY_IMAGE:stage-texlive-update | ||||
|       --target texlive-update | ||||
|       --build-arg BUILDKIT_INLINE_CACHE=1 --pull | ||||
|       -t "$CI_REGISTRY_IMAGE:stage-texlive-update" | ||||
|       -t "$CI_REGISTRY_IMAGE:stage-texlive-update-branch-$CI_COMMIT_REF_SLUG" . | ||||
|     - docker build --cache-from $CI_REGISTRY_IMAGE \ | ||||
|       --target app --squash \ | ||||
|       --build-arg BUILDKIT_INLINE_CACHE=1 --pull \ | ||||
|       -t "$CI_REGISTRY_IMAGE" \ | ||||
|     - docker build --cache-from $CI_REGISTRY_IMAGE | ||||
|       --target app --squash | ||||
|       --build-arg BUILDKIT_INLINE_CACHE=1 --pull | ||||
|       -t "$CI_REGISTRY_IMAGE" | ||||
|       -t "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG" . | ||||
|     - docker push "$CI_REGISTRY_IMAGE" | ||||
|     - docker push "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG" | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue