Files
keeporg/.woodpecker/deploy.yaml
T

29 lines
561 B
YAML

---
when:
- path:
include:
- 'config/variables/server.values.yaml'
- '.woodpecker/deploy.yaml'
- 'Makefile'
- 'VERSION'
- 'Dockerfile'
- '**/*.go'
event: push
labels:
role: homeserver
depends_on:
- build
skip_clone: true
steps:
clone:
image: bash
commands:
- git clone --depth=1 ${CI_REPO_CLONE_SSH_URL}
deploy:
image: bash
commands:
- cd ${CI_REPO_NAME} && echo $GIT_SUDO | sudo -S make deploy-server
environment:
GIT_SUDO:
from_secret: git_sudo