Create .woodpecker.yml

This commit is contained in:
Elara 2023-12-20 04:27:32 +00:00 committed by GitHub
parent e86c199496
commit c051ffda03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

30
.woodpecker.yml Normal file
View File

@ -0,0 +1,30 @@
labels:
platform: linux/amd64
steps:
build:
image: hugomods/hugo:go-git
commands:
- hugo
- tar czvf site.tar.gz public/
upload:
image: plugins/s3
settings:
endpoint: https://api.minio.elara.ws
path_style: true
bucket: connerchu.com
access_key: AkdgUdmzEJBoiYa2
secret_key:
from_secret: minio_secret_key
source: site.tar.gz
target: /
deploy:
image: loq9/drone-nomad
settings:
addr: http://192.168.100.62:4646
template: template.nomad
environment:
- PLUGIN_WATCH_DEPLOYMENT=true
- PLUGIN_WATCH_DEPLOYMENT_TIMEOUT=10m