This commit is contained in:
parent
b30cd2710b
commit
ac686aebec
37
.drone.yml
37
.drone.yml
@ -10,29 +10,26 @@ steps:
|
||||
commands:
|
||||
- yarn install
|
||||
- yarn build
|
||||
|
||||
- name: deploy
|
||||
image: git.burble.dn42/burble.dn42/rsync
|
||||
environment:
|
||||
VAULT_TOKEN:
|
||||
from_secret: WWW_DEPLOY_TOKEN
|
||||
RSYNC_CHOWN: 81001:81001
|
||||
RSYNC_CHMOD: D2755,F644
|
||||
|
||||
- name: stage
|
||||
image: alpine
|
||||
commands:
|
||||
- /rsync.sh de-fra1,ca-bhs2,us-lax1,us-nyc1 dist/ apps/nginx/anycast/
|
||||
when:
|
||||
branch: main
|
||||
event: push
|
||||
- tar -czf anycast.tar.gz -C dist/ .
|
||||
|
||||
- name: upload artifacts
|
||||
image: git.burble.dn42/burble.dn42/drone-gitea-pkg-plugin:latest
|
||||
settings:
|
||||
token:
|
||||
from_secret: TOKEN
|
||||
version: latest
|
||||
artifact: anycast.tar.gz
|
||||
package: anycast
|
||||
owner: burble.dn42
|
||||
|
||||
---
|
||||
kind: secret
|
||||
name: WWW_DEPLOY_TOKEN
|
||||
name: TOKEN
|
||||
get:
|
||||
path: burble.dn42/kv/data/drone/rsync
|
||||
name: VAULT_TOKEN
|
||||
path: burble.dn42/kv/data/drone/git.burble.dn42
|
||||
name: artifact-token
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: c8eca2129d5c1717c06fac8f63f72f2b788a93786deadaef2a2a027a374bd2de
|
||||
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user