diff options
| author | Fuwn <[email protected]> | 2026-02-28 04:42:41 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-28 04:42:41 -0800 |
| commit | f5f379ac9f160c5ef5a14ac61b1e21756eb3744b (patch) | |
| tree | 0c8115fe0e978497e66bf7e8f0e8657e21a0d812 /Taskfile.yaml | |
| parent | chore(gitignore): tidy ignores (diff) | |
| download | plutia-test-f5f379ac9f160c5ef5a14ac61b1e21756eb3744b.tar.xz plutia-test-f5f379ac9f160c5ef5a14ac61b1e21756eb3744b.zip | |
build(task): add multi-arch docker build targets
Diffstat (limited to 'Taskfile.yaml')
| -rw-r--r-- | Taskfile.yaml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Taskfile.yaml b/Taskfile.yaml index 9bdc355..9d6f6a7 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -323,12 +323,15 @@ tasks: - "{{.BIN}} version" docker:build: - desc: Build the Plutia container image with the current semantic version. + desc: Build Plutia container images for linux/amd64 and linux/arm64. preconditions: - sh: command -v docker >/dev/null 2>&1 msg: docker CLI is required for docker:build + - sh: docker buildx version >/dev/null 2>&1 + msg: docker buildx is required for multi-architecture docker:build cmds: - - docker build -t ghcr.io/fuwn/plutia:{{.VERSION_TAG}} . + - docker buildx build --platform linux/amd64 -t ghcr.io/fuwn/plutia:{{.VERSION_TAG}}-amd64 --load . + - docker buildx build --platform linux/arm64 -t ghcr.io/fuwn/plutia:{{.VERSION_TAG}}-arm64 --load . docker:run: desc: Run Plutia container with mounted config and persistent data. |