This commit is contained in:
parent
b30cd2710b
commit
ac686aebec
35
.drone.yml
35
.drone.yml
@ -11,28 +11,25 @@ steps:
|
|||||||
- yarn install
|
- yarn install
|
||||||
- yarn build
|
- yarn build
|
||||||
|
|
||||||
- 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 dist/ apps/nginx/anycast/
|
- tar -czf anycast.tar.gz -C dist/ .
|
||||||
when:
|
|
||||||
branch: main
|
- name: upload artifacts
|
||||||
event: push
|
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
|
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: c8eca2129d5c1717c06fac8f63f72f2b788a93786deadaef2a2a027a374bd2de
|
|
||||||
|
|
||||||
...
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user