Compare commits

...

5 commits

Author SHA1 Message Date
ba8c849835 gitea.nulo.in: Use NPM cache
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-09-09 17:23:47 -03:00
6db35c9667 gitea.nulo.in: Use APK cache
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-09-09 17:08:02 -03:00
2b061836ce gitea.nulo.in: Use script to upgrade
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-09-07 19:01:24 -03:00
7adcc0971a gitea.nulo.in: Use Alpine 3.16
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
2022-09-06 19:57:33 -03:00
1c7676e699 Add .woodpecker.yml for gitea.nulo.in 2022-09-06 19:57:33 -03:00

33
.woodpecker.yml Normal file
View file

@ -0,0 +1,33 @@
pipeline:
build:
image: docker.io/alpine:3.16
commands:
- echo "172.17.0.1 alpine.proxy.coso npm.proxy.coso" >> /etc/hosts
- echo "http://alpine.proxy.coso/alpine/v3.16/main" > /etc/apk/repositories
- echo "http://alpine.proxy.coso/alpine/v3.16/community" >> /etc/apk/repositories
- apk add git nodejs npm go make rsync openssh-client-default
- npm set registry http://npm.proxy.coso
- 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
# #!/bin/sh
# # Editar en https://gitea.nulo.in/Nulo/gitea si se cambia
# bin=/usr/local/bin/gitea
# new=/usr/local/bin/gitea.new
#
# rm "$new"
# cat /dev/stdin > "$new" || exit $?
# chmod +x "$new" || exit $?
# mv "$new" "$bin" || exit $?
# sv restart gitea || exit $?
- ssh -p420 ci-gitea@nulo.in doas /usr/local/sbin/instalar-gitea < gitea
when:
branch: gitea.nulo.in
event: push
secrets:
- ssh_key