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

40 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2022-05-31 21:12:17 +00:00
clone:
git:
image: woodpeckerci/plugin-git
settings:
tags: true
pipeline:
build:
2022-06-01 18:22:55 +00:00
image: docker.io/alpine:3.16
2022-05-31 21:12:17 +00:00
commands:
2022-09-09 20:23:47 +00:00
- echo "172.17.0.1 alpine.proxy.coso npm.proxy.coso" >> /etc/hosts
2022-09-09 20:08:02 +00:00
- echo "http://alpine.proxy.coso/alpine/v3.16/main" > /etc/apk/repositories
- echo "http://alpine.proxy.coso/alpine/v3.16/community" >> /etc/apk/repositories
2022-05-31 21:12:17 +00:00
- apk add git nodejs npm go make rsync openssh-client-default
2022-09-09 20:23:47 +00:00
- npm set registry http://npm.proxy.coso
2022-09-09 20:08:02 +00:00
2022-05-31 21:12:17 +00:00
- 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-09-07 22:01:24 +00:00
# #!/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
2022-05-31 21:12:17 +00:00
when:
branch: gitea.nulo.in
event: push
secrets:
- ssh_key