2023-03-10 18:20:24 +00:00
|
|
|
pipeline:
|
2023-03-10 19:42:04 +00:00
|
|
|
build-image:
|
2023-03-10 19:53:37 +00:00
|
|
|
image: docker.io/woodpeckerci/plugin-docker-buildx
|
|
|
|
secrets: [docker_username, docker_password]
|
|
|
|
# commands:
|
|
|
|
# - echo $REGISTRY_SECRET | img login --username Nulo --password-stdin gitea.nulo.in
|
|
|
|
# - img build -t gitea.nulo.in/nulo/sitio-build:latest tooling/Containerfile
|
|
|
|
# - img push gitea.nulo.in/nulo/sitio-build:latest
|
|
|
|
settings:
|
2023-03-10 19:56:06 +00:00
|
|
|
registry: https://gitea.nulo.in
|
|
|
|
username: Nulo
|
2023-03-10 19:53:37 +00:00
|
|
|
repo: gitea.nulo.in/nulo/sitio-build
|
|
|
|
dockerfile: tooling/Containerfile
|
2023-03-10 19:42:04 +00:00
|
|
|
when:
|
|
|
|
path:
|
|
|
|
include: ["tooling/*", ".woodpecker.yml"]
|
2023-03-10 18:20:24 +00:00
|
|
|
|
2023-03-10 19:42:04 +00:00
|
|
|
build:
|
|
|
|
image: gitea.nulo.in/nulo/sitio-build:latest
|
2023-03-28 16:44:00 +00:00
|
|
|
pull: true
|
2023-03-10 19:42:04 +00:00
|
|
|
commands:
|
2023-03-10 18:20:24 +00:00
|
|
|
- pnpm install
|
|
|
|
- ./tool refresh_feeds
|
|
|
|
- ./tool check
|
|
|
|
- ./tool build
|
|
|
|
|
2023-03-10 18:58:39 +00:00
|
|
|
- |
|
|
|
|
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
|
2023-03-10 18:20:24 +00:00
|
|
|
|
|
|
|
- ./upload
|
|
|
|
when:
|
|
|
|
branch: ANTIFASCISTA
|
|
|
|
event: push
|
|
|
|
secrets:
|
|
|
|
- ssh_key
|