From 2a6920eb9636c55de9760d0427aceb0991171d86 Mon Sep 17 00:00:00 2001 From: naicoi Date: Thu, 18 May 2023 14:46:28 +0700 Subject: [PATCH] Add Woodpecker CI pipeline for Docker build and deployment This commit adds a new `.woodpecker.yml` file with settings for building and deploying Docker images using the `woodpeckerci/plugin-docker-buildx` image. The `Dockerfile` has also been updated to install `curl`, Deno, and deployctl. --- .woodpecker.yml | 13 +++++++++++++ Dockerfile | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 .woodpecker.yml create mode 100644 Dockerfile diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..5b3fb7a --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,13 @@ +pipeline: + alpine: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: lttech/deno-deployctl + platforms: linux/amd64,linux/arm64/v8 + tags: + - ${version}-${os} + build_args: + - tag=${version}-${os} + username: lttech + password: + from_secret: docker_lttech diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8e308ae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM alpine +RUN apk add curl +RUN curl -fsSL https://deno.land/x/install/install.sh | sh +RUN deno install --allow-all --no-check -r -f https://deno.land/x/deploy/deployctl.ts \ No newline at end of file