Compare commits

..

No commits in common. "2e99e24da367e60097bc46ebf6a6b161d837286b" and "8c59e0d9eaa20f98b9a6483c647eeaf6df045b1a" have entirely different histories.

3 changed files with 37 additions and 4 deletions

34
.woodpecker.yml Normal file
View file

@ -0,0 +1,34 @@
pipeline:
build-image:
image: docker.io/woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
registry: https://gitea.nulo.in
username: Nulo
repo: gitea.nulo.in/nulo/sitio-build
dockerfile: tooling/Containerfile
when:
path:
include: ["tooling/*", ".woodpecker.yml"]
build:
image: gitea.nulo.in/nulo/sitio-build:latest
pull: true
commands:
- pnpm install
- ./tool refresh_feeds
- ./tool check
- ./tool 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
- ./upload
when:
branch: ANTIFASCISTA
event: push
secrets:
- ssh_key

View file

@ -13,10 +13,7 @@ build: (run './tool build')
check: (run './tool check') check: (run './tool check')
refresh_feeds: (run './tool refresh_feeds') refresh_feeds: (run './tool refresh_feeds')
clean:
if [ ! -z "$(git status --porcelain)" ]; then echo "not clean!"; exit 1; fi
ready_to_upload: check refresh_feeds build ready_to_upload: check refresh_feeds build
upload: clean ready_to_upload upload: ready_to_upload
rsync --rsh='ssh -p443' --recursive --chmod=644 build/ root@nulo.ar:/var/www/nulo.ar/ rsync --rsh='ssh -p443' --recursive --chmod=644 build/ root@nulo.ar:/var/www/nulo.ar/

2
upload Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
rsync --rsh='ssh -p420' --recursive --chmod=644 build/ ci-nulo-in@nulo.in:/var/www/nulo.ar/