Files
do-as-sudo/.woodpecker.yml
2025-10-27 14:54:33 -07:00

21 lines
431 B
YAML

skip_clone: true
when:
- branch: master
event: push
steps:
- name: clone to build-artifacts
image: sh
environment:
BUILD_DIR: /mnt/build-artifacts/blog
commands:
- rm -rf "$BUILD_DIR"/*
- rm -rf "$BUILD_DIR"/.[!.]* 2>/dev/null || true
- git clone --recurse-submodules "$CI_REPO_CLONE_URL" .
- cp -r . "$BUILD_DIR/"
- name: redeploy
image: sh
commands:
- ssh blog