You've already forked docker-compose-docker
							
							fix(ci): add build args containing GO environment variables
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Auto release / tag_on_change (push) Has been cancelled
				
			
		
			
				
	
				Build / build-arm64 (push) Has been cancelled
				
			
		
			
				
	
				Build / build-amd64 (push) Has been cancelled
				
			
		
			
				
	
				Lint Markdown files / markdown-lint (push) Has been cancelled
				
			
		
			
				
	
				Update Docker Hub Description / update-description-on-hub-docker-io (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Auto release / tag_on_change (push) Has been cancelled
				
			Build / build-arm64 (push) Has been cancelled
				
			Build / build-amd64 (push) Has been cancelled
				
			Lint Markdown files / markdown-lint (push) Has been cancelled
				
			Update Docker Hub Description / update-description-on-hub-docker-io (push) Has been cancelled
				
			This commit is contained in:
		| @@ -1,6 +1,9 @@ | ||||
| FROM docker.io/library/golang:1.25.3-alpine3.21 AS build | ||||
|  | ||||
| ARG DC_VERSION=main | ||||
| ARG GONOSUMDB | ||||
| ARG GOPRIVATE | ||||
| ARG GOPROXY | ||||
|  | ||||
| RUN set -ex && \ | ||||
|     apk update && \ | ||||
|   | ||||
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							| @@ -17,12 +17,20 @@ DC_IMAGE_NAME:=docker-compose | ||||
| DC_IMAGE_VERSION?=latest | ||||
| DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IMAGE_NAME}:${DC_IMAGE_VERSION} | ||||
|  | ||||
| # Golang related environment variables | ||||
| GONOSUMDB?= | ||||
| GOPRIVATE?= | ||||
| GOPROXY?= | ||||
|  | ||||
| # BUILD CONTAINER IMAGE | ||||
| # ===================================================================================================================== | ||||
| PHONY:=container-image/build | ||||
| container-image/build: | ||||
| 	${CONTAINER_RUNTIME} build \ | ||||
| 		--build-arg DC_VERSION=${DC_VERSION} \ | ||||
| 		--build-arg GONOSUMDB=${GONOSUMDB} \ | ||||
| 		--build-arg GOPRIVATE=${GOPRIVATE} \ | ||||
| 		--build-arg GOPROXY=${GOPROXY} \ | ||||
| 		--file Dockerfile \ | ||||
| 		--no-cache \ | ||||
| 		--pull \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user