--- when: - path: include: - 'config/variables/server.values.yaml' - '.woodpecker/deploy.yaml' - 'Makefile' - 'versions.mk' - 'Dockerfile' - '**/*.go' event: [push, cron, manual] # These steps run as root on the build and production hosts: only the # main branch may reach them. branch: main 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