Compare commits
2 commits
8c59e0d9ea
...
2e99e24da3
Author | SHA1 | Date | |
---|---|---|---|
2e99e24da3 | |||
0fa9d468db |
3 changed files with 4 additions and 37 deletions
|
@ -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
|
|
5
Justfile
5
Justfile
|
@ -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
2
upload
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
rsync --rsh='ssh -p420' --recursive --chmod=644 build/ ci-nulo-in@nulo.in:/var/www/nulo.ar/
|
|
Reference in a new issue