From 9a9ad5133ed0a474b7e9675e7c244bdbee89ad89 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Thu, 17 Sep 2026 19:41:03 -0700 Subject: [PATCH] just create the drone file directly --- .drone.yml | 25 +++++++++++++++++++++++++ README.md | 32 ++------------------------------ 2 files changed, 27 insertions(+), 30 deletions(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..801636b --- /dev/null +++ b/.drone.yml @@ -0,0 +1,25 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: node:current + environment: + REPOSITORY: + GIT_USER: + GIT_TOKEN: + from_secret: GIT_TOKEN + commands: + - git config credential.helper '!f() { echo username=$GIT_USER; echo "password=$GIT_TOKEN"; };f' + - git submodule update --remote --init --merge + - npm install + - npm run build + - apt-get update && apt-get install -y rsync + - rsync -uavh _site/ $REPOSITORY --delete --exclude .git + - cd $REPOSITORY + - git checkout main + - git config --global --add safe.directory /drone/src/$REPOSITORY + - git add -A + - git commit -m "drone build $(TZ=':America/Los_Angeles' date)" + - git push diff --git a/README.md b/README.md index 7613745..5dd701d 100644 --- a/README.md +++ b/README.md @@ -8,37 +8,9 @@ Template repository for my 11ty projects. in heckin gitea, create destination repo. -### 2. add dronefile to source repo +### 2. update dronefile in source repo -Filename: `.drone.yml`, in root of repo. Note the `` to replace. - -```yaml -kind: pipeline -type: docker -name: default - -steps: - - name: build - image: node:current - environment: - REPOSITORY: - GIT_USER: - GIT_TOKEN: - from_secret: GIT_TOKEN - commands: - - git config credential.helper '!f() { echo username=$GIT_USER; echo "password=$GIT_TOKEN"; };f' - - git submodule update --remote --init --merge - - npm install - - npm run build - - apt-get update && apt-get install -y rsync - - rsync -uavh _site/ $REPOSITORY --delete --exclude .git - - cd $REPOSITORY - - git checkout main - - git config --global --add safe.directory /drone/src/$REPOSITORY - - git add -A - - git commit -m "drone build $(TZ=':America/Los_Angeles' date)" - - git push -``` +Update the `` in [.drone.yml](.drone.yml). ### 3. create PAT (one-time, not per repo)