diff --git a/.drone.yml b/.drone.yml index ae0a73e..5e6d389 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,17 +11,21 @@ steps: hugo_version: 0.91.2 validate: true -#- name: deploy -# image: alpine -# environment: -# VAULT_TOKEN: -# from_secret: WWW_DEPLOY_TOKEN -# commands: -# - apk add --update bash openssh-client -# - ./push.sh -# when: -# branch: master -# event: push +- name: deploy + image: c8n.io/simonburblecom/rsync + environment: + VAULT_TOKEN: + from_secret: WWW_DEPLOY_TOKEN + RSYNC_CHOWN: 81001:81001 + RSYNC_CHMOD: D2755,F644 + commands: + - /rsync.sh de-fra1,ca-bhs2 public/ apps/nginx/burble.dn42/ + when: + branch: master + event: push + +image_pull_secrets: + - CONFIG_JSON --- kind: secret @@ -30,4 +34,11 @@ get: path: burble.dn42/kv/data/drone/rsync name: VAULT_TOKEN +--- +kind: secret +name: CONFIG_JSON +get: + path: burble.dn42/kv/data/drone/docker + name: configjson + # end of file \ No newline at end of file