feat(e2e): add make build target for local docker image

Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Jan Larwig 2025-08-12 08:17:26 +02:00
parent 3978b2f27f
commit e0c472a02d
No known key found for this signature in database
GPG Key ID: C2172BFA220A037A
3 changed files with 59 additions and 54 deletions

View File

@ -3,10 +3,10 @@ name: Continuous Integration
on:
push:
branches:
- '**'
- master
pull_request:
branches:
- '**'
- "**"
jobs:
build:
runs-on: ubuntu-latest

1
.gitignore vendored
View File

@ -7,6 +7,7 @@ release
.env
.bundle
c.out
e2e
# Go.gitignore
# Compiled Object files, Static and Dynamic libs (Shared Objects)

View File

@ -75,6 +75,10 @@ DOCKER_BUILDX_PUSH_X_PLATFORM_ALPINE := $(DOCKER_BUILDX_X_PLATFORM_ALPINE) --pus
.PHONY: build-docker
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
build-distroless: ## Build multi architecture distroless based docker image
$(DOCKER_BUILDX_X_PLATFORM) -t $(REGISTRY)/$(REPOSITORY):latest -t $(REGISTRY)/$(REPOSITORY):${VERSION} .