feat(e2e): add make build target for local docker image
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
		
							parent
							
								
									3978b2f27f
								
							
						
					
					
						commit
						e0c472a02d
					
				|  | @ -3,10 +3,10 @@ name: Continuous Integration | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
|     branches: |     branches: | ||||||
|       - '**' |       - master | ||||||
|   pull_request: |   pull_request: | ||||||
|     branches: |     branches: | ||||||
|       - '**' |       - "**" | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ release | ||||||
| .env | .env | ||||||
| .bundle | .bundle | ||||||
| c.out | c.out | ||||||
|  | e2e | ||||||
| 
 | 
 | ||||||
| # Go.gitignore | # Go.gitignore | ||||||
| # Compiled Object files, Static and Dynamic libs (Shared Objects) | # Compiled Object files, Static and Dynamic libs (Shared Objects) | ||||||
|  |  | ||||||
							
								
								
									
										4
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										4
									
								
								Makefile
								
								
								
								
							|  | @ -75,6 +75,10 @@ DOCKER_BUILDX_PUSH_X_PLATFORM_ALPINE := $(DOCKER_BUILDX_X_PLATFORM_ALPINE) --pus | ||||||
| .PHONY: build-docker | .PHONY: build-docker | ||||||
| build-docker: build-distroless build-alpine ## Build multi architecture docker images in both flavours (distroless / alpine)
 | build-docker: build-distroless build-alpine ## Build multi architecture docker images in both flavours (distroless / alpine)
 | ||||||
| 
 | 
 | ||||||
|  | .PHONY: build-docker-local | ||||||
|  | build-docker-local: ## Build distroless docker image and locally load into docker images
 | ||||||
|  | 	$(DOCKER_BUILDX) --load -t $(REGISTRY)/$(REPOSITORY):latest -t $(REGISTRY)/$(REPOSITORY):${VERSION} . | ||||||
|  | 
 | ||||||
| .PHONY: build-distroless | .PHONY: build-distroless | ||||||
| build-distroless: ## Build multi architecture distroless based docker image
 | build-distroless: ## Build multi architecture distroless based docker image
 | ||||||
| 	$(DOCKER_BUILDX_X_PLATFORM) -t $(REGISTRY)/$(REPOSITORY):latest -t $(REGISTRY)/$(REPOSITORY):${VERSION} . | 	$(DOCKER_BUILDX_X_PLATFORM) -t $(REGISTRY)/$(REPOSITORY):latest -t $(REGISTRY)/$(REPOSITORY):${VERSION} . | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue