Files
mattrbld/.drone.yml

28 lines
848 B
YAML
Raw Normal View History

2026-05-13 13:36:51 -07:00
kind: pipeline
type: docker
name: default
steps:
- name: build
2026-05-13 13:36:51 -07:00
image: node:current
2026-05-13 15:39:03 -07:00
environment:
2026-05-13 17:00:09 -07:00
REPOSITORY: mattrbld-site
2026-05-13 15:39:03 -07:00
GIT_TOKEN:
from_secret: GIT_TOKEN
2026-05-13 13:36:51 -07:00
commands:
- npm install
- npm run build
2026-05-13 15:39:03 -07:00
- apt-get update && apt-get install -y rsync
2026-05-14 10:35:11 -07:00
- ls -al
2026-05-14 10:32:51 -07:00
- ls -al mattrbld-site
2026-05-14 10:36:12 -07:00
- git submodule update --remote
2026-05-13 17:03:06 -07:00
- rsync -uavh _site/ $REPOSITORY --delete --exclude .git
- cd $REPOSITORY
2026-05-14 10:30:45 -07:00
- ls -al
2026-05-14 10:28:38 -07:00
- git config --global --add safe.directory /drone/src/$REPOSITORY
2026-05-13 17:01:21 -07:00
- git add -A
2026-05-13 17:00:09 -07:00
- git commit -m "drone build $(TZ=':America/Los_Angeles' date)"
- git remote set-url origin https://heckin.technology/inherentlee/$REPOSITORY.git
2026-05-13 15:39:03 -07:00
- git config credential.helper '!f() { echo username=inherentlee; echo "password=$GIT_TOKEN"; };f'
2026-05-13 14:02:39 -07:00
- git push