From 3ea28cec9af5c74b1669d1a408a2664733edbecc Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Mon, 25 Sep 2023 18:56:55 +0100 Subject: [PATCH] update build --- .drone.yml | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/.drone.yml b/.drone.yml index fee6313..c3befbe 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,29 +9,26 @@ steps: image: plugins/hugo settings: hugo_version: 0.112.3 - -- 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 public/ apps/nginx/burble.dn42/ - when: - branch: master - event: push + - tar -czf site.tar.gz -C public/ . + +- name: upload artifacts + 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 -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: ab5a6df6ff88ecb053d595fd5f0e7891eca503787f1269dd372688d0952eb592 - -...