2026-05-13 13:36:51 -07:00
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
|
|
|
|
name: default
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: test
|
|
|
|
|
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-13 16:21:45 -07:00
|
|
|
- rsync -uavh _site/ mattrbld-site --delete --exclude .git
|
2026-05-13 14:02:39 -07:00
|
|
|
- cd mattrbld-site
|
|
|
|
|
- git config --global --add safe.directory /drone/src/mattrbld-site
|
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
|