Also push docker image to docker hub
This commit is contained in:
		
							parent
							
								
									734c4637f0
								
							
						
					
					
						commit
						fcd127aadc
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -245,7 +245,7 @@ build:cargo-deb:x86_64-unknown-linux-gnu: | ||||||
|     KANIKO_CACHE_ARGS: "--cache=true --cache-copy-layers=true --cache-ttl=120h --cache-repo $CI_REGISTRY_IMAGE/kaniko-ci-cache" |     KANIKO_CACHE_ARGS: "--cache=true --cache-copy-layers=true --cache-ttl=120h --cache-repo $CI_REGISTRY_IMAGE/kaniko-ci-cache" | ||||||
|   before_script: |   before_script: | ||||||
|     - "mkdir -p /kaniko/.docker" |     - "mkdir -p /kaniko/.docker" | ||||||
|     - 'echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json' |     - 'echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"},\"$DOCKER_HUB\":{\"username\":\"$DOCKER_HUB_USER\",\"password\":\"$DOCKER_HUB_PASSWORD\"}}}" > /kaniko/.docker/config.json' | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Build a docker image by packaging up the x86_64-unknown-linux-musl binary into an alpine image | # Build a docker image by packaging up the x86_64-unknown-linux-musl binary into an alpine image | ||||||
|  | @ -265,6 +265,9 @@ build:docker:main: | ||||||
|       --destination "$CI_REGISTRY_IMAGE/conduit:latest" |       --destination "$CI_REGISTRY_IMAGE/conduit:latest" | ||||||
|       --destination "$CI_REGISTRY_IMAGE/conduit:alpine" |       --destination "$CI_REGISTRY_IMAGE/conduit:alpine" | ||||||
|       --destination "$CI_REGISTRY_IMAGE/conduit:commit-$CI_COMMIT_SHORT_SHA" |       --destination "$CI_REGISTRY_IMAGE/conduit:commit-$CI_COMMIT_SHORT_SHA" | ||||||
|  |       --destination "$DOCKER_HUB_IMAGE/matrixconduit/matrix-conduit:latest" | ||||||
|  |       --destination "$DOCKER_HUB_IMAGE/matrixconduit/matrix-conduit:alpine" | ||||||
|  |       --destination "$DOCKER_HUB_IMAGE/matrixconduit/matrix-conduit:commit-$CI_COMMIT_SHORT_SHA" | ||||||
|   rules: |   rules: | ||||||
|     - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' |     - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue