From 733ab0fd330b333c0d1a5e57ef2691d5482f7584 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 26 Mar 2023 01:03:07 +0000 Subject: [PATCH] ci --- .woodpecker.yml | 33 +++++++++++++++++++++++++++++++++ tooling/Containerfile | 4 ++++ 2 files changed, 37 insertions(+) create mode 100644 .woodpecker.yml create mode 100644 tooling/Containerfile diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..1c391c1 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,33 @@ + +pipeline: + build-image: + image: docker.io/woodpeckerci/plugin-docker-buildx + secrets: [docker_username, docker_password] + settings: + registry: https://gitea.nulo.in + username: Nulo + repo: gitea.nulo.in/nulo/schreiben-build + dockerfile: tooling/Containerfile + when: + path: + include: ["tooling/*", ".woodpecker.yml"] + + build: + image: gitea.nulo.in/nulo/schreiben-build:latest + commands: + - pnpm install + - pnpm check + - pnpm build + + - | + eval $(ssh-agent -s) + echo "$${SSH_KEY}" | tr -d '\r' | ssh-add - + mkdir -p ~/.ssh + echo "[nulo.ar]:993 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP" > ~/.ssh/known_hosts + + - scp -rP993 dist/* root@nulo.in:/var/www/beta.schreiben.nulo.ar/ + when: + branch: antifascista + event: push + secrets: + - ssh_key \ No newline at end of file diff --git a/tooling/Containerfile b/tooling/Containerfile new file mode 100644 index 0000000..31cec0a --- /dev/null +++ b/tooling/Containerfile @@ -0,0 +1,4 @@ +FROM docker.io/alpine:3.17 + +RUN apk add --no-cache nodejs npm rsync openssh-client-default +RUN npm install --global pnpm \ No newline at end of file