2023-08-08 16:33:37 +00:00
|
|
|
platform: linux/amd64
|
|
|
|
|
|
|
|
steps:
|
2023-02-12 08:20:16 +00:00
|
|
|
build:
|
2023-12-12 23:25:35 +00:00
|
|
|
image: hugomods/hugo:go-git
|
2023-02-12 08:20:16 +00:00
|
|
|
commands:
|
|
|
|
- hugo
|
|
|
|
- tar czvf site.tar.gz public/
|
|
|
|
|
|
|
|
upload:
|
|
|
|
image: plugins/s3
|
|
|
|
settings:
|
2023-05-04 00:01:53 +00:00
|
|
|
endpoint: https://api.minio.elara.ws
|
2023-02-12 08:20:16 +00:00
|
|
|
path_style: true
|
|
|
|
bucket: site
|
|
|
|
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:
|
2023-02-12 09:02:31 +00:00
|
|
|
- PLUGIN_WATCH_DEPLOYMENT=true
|
2023-08-08 16:33:37 +00:00
|
|
|
- PLUGIN_WATCH_DEPLOYMENT_TIMEOUT=10m
|