You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
pipeline:
|
|
build-image:
|
|
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:
|
|
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
|