27 lines
556 B
YAML
27 lines
556 B
YAML
---
|
|
when:
|
|
- path:
|
|
include:
|
|
- 'config/variables/server.values.yaml'
|
|
- '.woodpecker/build.yaml'
|
|
- 'Makefile'
|
|
- 'versions.mk'
|
|
- 'Dockerfile'
|
|
- '**/*.go'
|
|
event: [push, cron, manual]
|
|
labels:
|
|
role: production
|
|
skip_clone: true
|
|
steps:
|
|
clone:
|
|
image: bash
|
|
commands:
|
|
- git clone --depth=1 ${CI_REPO_CLONE_SSH_URL}
|
|
build:
|
|
image: bash
|
|
commands:
|
|
- cd ${CI_REPO_NAME} && echo $GIT_SUDO | sudo -S make build-server
|
|
environment:
|
|
GIT_SUDO:
|
|
from_secret: git_sudo
|