Subir y solo descargar lo que necesitamos
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
58d7830020
commit
25a9e2adb8
1 changed files with 15 additions and 2 deletions
|
@ -2,7 +2,20 @@ pipeline:
|
|||
build:
|
||||
image: docker.io/alpine:3.15
|
||||
commands:
|
||||
- apk add git nodejs npm go make
|
||||
- git clone https://github.com/go-gitea/gitea -b v1.16.4
|
||||
- apk add git nodejs npm go make rsync openssh-client-default
|
||||
- git clone https://github.com/go-gitea/gitea -b v1.16.4 --depth 1 --single-branch
|
||||
- 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
|
||||
- rsync --rsh='ssh -p420' --progress --chmod=644 gitea diablo@nulo.in:/usr/local/bin/gitea
|
||||
- ssh -p420 diablo@nulo.in 'doas sv restart gitea'
|
||||
when:
|
||||
branch: 420
|
||||
event: push
|
||||
secrets:
|
||||
- ssh_key
|
||||
|
||||
|
|
Reference in a new issue