From e69ebc387d59e49534f3dbc766db0455c53ca0a2 Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Wed, 2 Oct 2024 16:56:24 +0200 Subject: [PATCH] Disable cache for container builds Signed-off-by: Ondra Machacek --- Makefile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index b3f4e91..e918506 100644 --- a/Makefile +++ b/Makefile @@ -63,19 +63,13 @@ build-api: bin # rebuild container only on source changes bin/.migration-planner-agent-container: bin Containerfile.agent go.mod go.sum $(GO_FILES) - mkdir -p $${HOME}/go/migration-planner-go-cache/.cache - podman build -f Containerfile.agent $(GO_CACHE) -t $(MIGRATION_PLANNER_AGENT_IMAGE):latest - touch bin/.migration-planner-agent-container + podman build -f Containerfile.agent -t $(MIGRATION_PLANNER_AGENT_IMAGE):latest bin/.migration-planner-collector-container: bin Containerfile.collector go.mod go.sum $(GO_FILES) - mkdir -p $${HOME}/go/migration-planner-go-cache/.cache - podman build -f Containerfile.collector $(GO_CACHE) -t $(MIGRATION_PLANNER_COLLECTOR_IMAGE):latest - touch bin/.migration-planner-collector-container + podman build -f Containerfile.collector -t $(MIGRATION_PLANNER_COLLECTOR_IMAGE):latest bin/.migration-planner-api-container: bin Containerfile.api go.mod go.sum $(GO_FILES) - mkdir -p $${HOME}/go/migration-planner-go-cache/.cache - podman build -f Containerfile.api $(GO_CACHE) -t $(MIGRATION_PLANNER_API_IMAGE):latest - touch bin/.migration-planner-api-container + podman build -f Containerfile.api -t $(MIGRATION_PLANNER_API_IMAGE):latest migration-planner-api-container: bin/.migration-planner-api-container migration-planner-collector-container: bin/.migration-planner-collector-container