Compare commits

...

2 commits

Author SHA1 Message Date
2e99e24da3 CI begone 2023-04-30 16:24:10 -03:00
0fa9d468db Justfile: chequear que está clean 2023-04-30 16:23:09 -03:00
3 changed files with 4 additions and 37 deletions

View file

@ -1,34 +0,0 @@
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,7 +13,10 @@ 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: ready_to_upload upload: clean 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
View file

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