From 0e874349ed2ecfe39afac600c0a6c48a2820eef7 Mon Sep 17 00:00:00 2001 From: Yihang Wang Date: Thu, 3 Oct 2024 03:31:52 +0800 Subject: [PATCH] Refactor build configuration and Dockerfile for Platypus web app admin, agent, and server --- cmd/admin/Dockerfile | 2 +- cmd/agent/Dockerfile | 2 +- cmd/server/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/admin/Dockerfile b/cmd/admin/Dockerfile index f07e2b3..4b0a295 100644 --- a/cmd/admin/Dockerfile +++ b/cmd/admin/Dockerfile @@ -14,7 +14,7 @@ RUN if git describe --tags --exact-match >/dev/null 2>&1; then \ goreleaser build --id platypus-admin --clean; \ else \ echo "Commit is not tagged. Creating a snapshot build."; \ - goreleaser build --id platypus-admin --clean --snapshot; \ + goreleaser build --id platypus-admin --clean --snapshot --single-target; \ fi RUN cp dist/platypus-admin_${TARGETOS}_${TARGETARCH}_v1/platypus-admin /usr/local/bin/platypus-admin diff --git a/cmd/agent/Dockerfile b/cmd/agent/Dockerfile index 9efd477..083815d 100644 --- a/cmd/agent/Dockerfile +++ b/cmd/agent/Dockerfile @@ -14,7 +14,7 @@ RUN if git describe --tags --exact-match >/dev/null 2>&1; then \ goreleaser build --id platypus-agent --clean; \ else \ echo "Commit is not tagged. Creating a snapshot build."; \ - goreleaser build --id platypus-agent --clean --snapshot; \ + goreleaser build --id platypus-agent --clean --snapshot --single-target; \ fi RUN cp dist/platypus-agent_${TARGETOS}_${TARGETARCH}_v1/platypus-agent /usr/local/bin/platypus-agent diff --git a/cmd/server/Dockerfile b/cmd/server/Dockerfile index d32d8a3..0eff068 100644 --- a/cmd/server/Dockerfile +++ b/cmd/server/Dockerfile @@ -14,7 +14,7 @@ RUN if git describe --tags --exact-match >/dev/null 2>&1; then \ goreleaser build --id platypus-server --clean; \ else \ echo "Commit is not tagged. Creating a snapshot build."; \ - goreleaser build --id platypus-server --clean --snapshot; \ + goreleaser build --id platypus-server --clean --snapshot --single-target; \ fi RUN cp dist/platypus-server_${TARGETOS}_${TARGETARCH}_v1/platypus-server /usr/local/bin/platypus-server