Skip to content

Commit

Permalink
change build to just tag - leverage the prev build
Browse files Browse the repository at this point in the history
Signed-off-by: Aviel Segev <[email protected]>
  • Loading branch information
AvielSegev committed Jan 2, 2025
1 parent ae4163e commit 24c1684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ build-agent: bin
# rebuild container only on source changes
bin/.migration-planner-agent-container: bin Containerfile.agent go.mod go.sum $(GO_FILES)
$(PODMAN) build . --build-arg VERSION=$(SOURCE_GIT_TAG) -f Containerfile.agent -t $(MIGRATION_PLANNER_AGENT_IMAGE):latest
$(PODMAN) build . --build-arg VERSION=$(SOURCE_GIT_TAG) -f Containerfile.agent -t $(MIGRATION_PLANNER_AGENT_IMAGE):$(REGISTRY_TAG)
$(PODMAN) image tag $(MIGRATION_PLANNER_AGENT_IMAGE):latest $(MIGRATION_PLANNER_AGENT_IMAGE):$(REGISTRY_TAG)

bin/.migration-planner-api-container: bin Containerfile.api go.mod go.sum $(GO_FILES)
$(PODMAN) build . -f Containerfile.api -t $(MIGRATION_PLANNER_API_IMAGE):latest
$(PODMAN) build . -f Containerfile.api -t $(MIGRATION_PLANNER_API_IMAGE):$(REGISTRY_TAG)
$(PODMAN) image tag $(MIGRATION_PLANNER_API_IMAGE):latest $(MIGRATION_PLANNER_API_IMAGE):$(REGISTRY_TAG)

migration-planner-api-container: bin/.migration-planner-api-container
migration-planner-agent-container: bin/.migration-planner-agent-container
Expand Down

0 comments on commit 24c1684

Please sign in to comment.