Initial deploy
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
---
|
||||
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
|
||||
Reference in New Issue
Block a user