Fix nightly release pipeline (#714)
* Add buildx create command to makefile to specify driver for the builder * Use docker-container as driver for docker buildx Co-authored-by: bhubert <bhubert@expediagroup.com>
This commit is contained in:
		
							parent
							
								
									17a5bfec3e
								
							
						
					
					
						commit
						29c5b1e705
					
				
							
								
								
									
										10
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										10
									
								
								Makefile
								
								
								
								
							|  | @ -225,6 +225,12 @@ container-runtime-images: ## List all local containers | ||||||
| 	@echo "+ $@" | 	@echo "+ $@" | ||||||
| 	$(CONTAINER_RUNTIME_COMMAND) images $(CONTAINER_RUNTIME_EXTRA_ARGS) | 	$(CONTAINER_RUNTIME_COMMAND) images $(CONTAINER_RUNTIME_EXTRA_ARGS) | ||||||
| 
 | 
 | ||||||
|  | define buildx-create-command | ||||||
|  | $(CONTAINER_RUNTIME_COMMAND) buildx create \ | ||||||
|  | 	--driver=docker-container \
 | ||||||
|  | 	--use | ||||||
|  | endef | ||||||
|  | 
 | ||||||
| ## Parameter is version
 | ## Parameter is version
 | ||||||
| define container-runtime-push-command | define container-runtime-push-command | ||||||
| $(CONTAINER_RUNTIME_COMMAND) buildx build \ | $(CONTAINER_RUNTIME_COMMAND) buildx build \ | ||||||
|  | @ -238,21 +244,25 @@ endef | ||||||
| .PHONY: container-runtime-push | .PHONY: container-runtime-push | ||||||
| container-runtime-push: check-env deepcopy-gen ## Push the container
 | container-runtime-push: check-env deepcopy-gen ## Push the container
 | ||||||
| 	@echo "+ $@" | 	@echo "+ $@" | ||||||
|  | 	$(call buildx-create-command) | ||||||
| 	$(call container-runtime-push-command,$(BUILD_TAG)) | 	$(call container-runtime-push-command,$(BUILD_TAG)) | ||||||
| 
 | 
 | ||||||
| .PHONY: container-runtime-snapshot-push | .PHONY: container-runtime-snapshot-push | ||||||
| container-runtime-snapshot-push: check-env deepcopy-gen | container-runtime-snapshot-push: check-env deepcopy-gen | ||||||
| 	@echo "+ $@" | 	@echo "+ $@" | ||||||
|  | 	$(call buildx-create-command) | ||||||
| 	$(call container-runtime-push-command,$(GITCOMMIT)) | 	$(call container-runtime-push-command,$(GITCOMMIT)) | ||||||
| 
 | 
 | ||||||
| .PHONY: container-runtime-release-version | .PHONY: container-runtime-release-version | ||||||
| container-runtime-release-version: check-env deepcopy-gen ## Release image with version tag (in addition to build tag)
 | container-runtime-release-version: check-env deepcopy-gen ## Release image with version tag (in addition to build tag)
 | ||||||
| 	@echo "+ $@" | 	@echo "+ $@" | ||||||
|  | 	$(call buildx-create-command) | ||||||
| 	$(call container-runtime-push-command,$(VERSION_TAG)) | 	$(call container-runtime-push-command,$(VERSION_TAG)) | ||||||
| 
 | 
 | ||||||
| .PHONY: container-runtime-release-latest | .PHONY: container-runtime-release-latest | ||||||
| container-runtime-release-latest: check-env deepcopy-gen ## Release image with latest tags (in addition to build tag)
 | container-runtime-release-latest: check-env deepcopy-gen ## Release image with latest tags (in addition to build tag)
 | ||||||
| 	@echo "+ $@" | 	@echo "+ $@" | ||||||
|  | 	$(call buildx-create-command) | ||||||
| 	$(call container-runtime-push-command,$(LATEST_TAG)) | 	$(call container-runtime-push-command,$(LATEST_TAG)) | ||||||
| 
 | 
 | ||||||
| .PHONY: container-runtime-release | .PHONY: container-runtime-release | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue