From 1c3fff8db793621edfc0b1a84f28cce941b43ec7 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 31 May 2022 18:12:17 -0300 Subject: [PATCH] Add .woodpecker.yml for gitea.nulo.in --- .woodpecker.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 000000000..a0a916663 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,24 @@ +clone: + git: + image: woodpeckerci/plugin-git + settings: + tags: true + +pipeline: + build: + image: docker.io/alpine:3.15 + commands: + - apk add git nodejs npm go make rsync openssh-client-default + - GOOS=linux GOARCH=amd64 LDFLAGS="-linkmode external -extldflags '-static' $LDFLAGS" TAGS="bindata sqlite sqlite_unlock_notify" make build + + - eval $(ssh-agent -s) + - echo "$${SSH_KEY}" | tr -d '\r' | ssh-add - + - mkdir -p ~/.ssh + - echo "[nulo.in]:420,[186.136.121.7]:420 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGPkgRVWYcVcgjI0xAjDgZQsYuXU9edcya8zna01ibyUMlfKHIMD9yOoq0R+fQPTCqwiol/2tKMPJ2hlKshc+H8=" > ~/.ssh/known_hosts + - rsync --rsh='ssh -p420' --progress --chmod=755 gitea diablo@nulo.in:gitea + - ssh -p420 diablo@nulo.in 'doas mv ~diablo/gitea /usr/local/bin/gitea && doas sv restart gitea' + when: + branch: gitea.nulo.in + event: push + secrets: + - ssh_key