This repository has been archived on 2022-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
gitea-updater/.woodpecker.yml

22 lines
999 B
YAML
Raw Normal View History

2022-03-15 21:53:44 +00:00
pipeline:
build:
image: docker.io/alpine:3.15
commands:
- apk add git nodejs npm go make rsync openssh-client-default
2022-03-24 19:42:41 +00:00
- git clone https://gitea.nulo.in/Nulo/gitea -b release/v1.16-nulo --depth 1 --single-branch
2022-03-15 21:53:44 +00:00
- cd gitea
- 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
2022-03-15 22:43:15 +00:00
- 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: 420
event: push
secrets:
- ssh_key
2022-05-16 20:33:00 +00:00
# bue