This commit is contained in:
parent
4634301867
commit
3ea28cec9a
37
.drone.yml
37
.drone.yml
@ -9,29 +9,26 @@ steps:
|
|||||||
image: plugins/hugo
|
image: plugins/hugo
|
||||||
settings:
|
settings:
|
||||||
hugo_version: 0.112.3
|
hugo_version: 0.112.3
|
||||||
|
|
||||||
- name: deploy
|
- name: stage
|
||||||
image: git.burble.dn42/burble.dn42/rsync
|
image: alpine
|
||||||
environment:
|
|
||||||
VAULT_TOKEN:
|
|
||||||
from_secret: WWW_DEPLOY_TOKEN
|
|
||||||
RSYNC_CHOWN: 81001:81001
|
|
||||||
RSYNC_CHMOD: D2755,F644
|
|
||||||
commands:
|
commands:
|
||||||
- /rsync.sh de-fra1,ca-bhs2,us-lax1,us-nyc1 public/ apps/nginx/burble.dn42/
|
- tar -czf site.tar.gz -C public/ .
|
||||||
when:
|
|
||||||
branch: master
|
- name: upload artifacts
|
||||||
event: push
|
image: git.burble.dn42/burble.dn42/drone-gitea-pkg-plugin:latest
|
||||||
|
settings:
|
||||||
|
token:
|
||||||
|
from_secret: TOKEN
|
||||||
|
version: latest
|
||||||
|
artifact: site.tar.gz
|
||||||
|
package: www
|
||||||
|
owner: burble.dn42
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: secret
|
kind: secret
|
||||||
name: WWW_DEPLOY_TOKEN
|
name: TOKEN
|
||||||
get:
|
get:
|
||||||
path: burble.dn42/kv/data/drone/rsync
|
path: burble.dn42/kv/data/drone/git.burble.dn42
|
||||||
name: VAULT_TOKEN
|
name: artifact-token
|
||||||
|
|
||||||
---
|
|
||||||
kind: signature
|
|
||||||
hmac: ab5a6df6ff88ecb053d595fd5f0e7891eca503787f1269dd372688d0952eb592
|
|
||||||
|
|
||||||
...
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user