mirror of
				https://gitlab.com/alemaire/buildx.git
				synced 2025-01-17 13:58:19 +00:00 
			
		
		
		
	Update .gitlab-ci.yml, restic/Dockerfile, minio/Dockerfile, restic/version, restic/Makefile files
This commit is contained in:
		
							
								
								
									
										7
									
								
								restic/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								restic/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| FROM alpine:3.12.3 | ||||
| ARG VERSION | ||||
| ARG TARGETARCH | ||||
| ENV VERSION $VERSION | ||||
| ADD https://github.com/restic/restic/releases/download/v${VERSION}/restic_${VERSION}_linux_${TARGETARCH}.bz2 /root/restic.bz2 | ||||
| RUN bunzip2 /root/restic.bz2 && chmod +x /root/restic && mv /root/restic /usr/bin/restic | ||||
| ENTRYPOINT ["/usr/bin/restic"] | ||||
							
								
								
									
										18
									
								
								restic/Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								restic/Makefile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| NAMESPACE=alemairebe | ||||
| include version | ||||
|  | ||||
| IMAGE=restic | ||||
|  | ||||
| nopush: | ||||
| 	docker buildx build --platform linux/amd64 --load \ | ||||
| 	    --build-arg VERSION=$(VERSION) \ | ||||
|     	--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \ | ||||
| 		--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) . | ||||
|  | ||||
| push: | ||||
| 	docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \ | ||||
| 	    --build-arg VERSION=$(VERSION) \ | ||||
|     	--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \ | ||||
| 	    --cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \ | ||||
| 	    --tag ${NAMESPACE}/${IMAGE}:$(VERSION) \ | ||||
| 		--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) . | ||||
							
								
								
									
										1
									
								
								restic/version
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								restic/version
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| VERSION=0.11.0 | ||||
		Reference in New Issue
	
	Block a user