From ec09cf42d5128caed8a3b9862e33f5ca61eac557 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Wed, 13 May 2026 15:39:03 -0700 Subject: [PATCH] continue iterating on dronefile --- .drone.yml | 9 ++++++--- .gitignore | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 68b7539..ddf32b1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,14 +5,17 @@ name: default steps: - name: test image: node:current + environment: + GIT_TOKEN: + from_secret: GIT_TOKEN commands: - npm install - npm run build - - apt-get update - - apt-get install -y rsync + - apt-get update && apt-get install -y rsync - rsync -uav _site/ mattrbld-site - cd mattrbld-site - git config --global --add safe.directory /drone/src/mattrbld-site - - git status - git commit -am "update site at $(date '+%Y-%m-%d %H:%M:%S')" + - git remote set-url origin https://heckin.technology/inherentlee/mattrbld-site.git + - git config credential.helper '!f() { echo username=inherentlee; echo "password=$GIT_TOKEN"; };f' - git push diff --git a/.gitignore b/.gitignore index c54855f..5056635 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ _live _site node_modules +secrets.txt