Skip to content

Commit

Permalink
Refactor build configuration and Dockerfile for Platypus web app admi…
Browse files Browse the repository at this point in the history
…n, agent, and server
  • Loading branch information
WangYihang committed Oct 2, 2024
1 parent d5381fa commit 0e87434
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e87434

Please sign in to comment.