neur0toxine.pages.neur0tx.site/.drone.yml

30 lines
668 B
YAML
Raw Normal View History

2023-11-12 22:41:53 +03:00
kind: pipeline
type: docker
name: default
steps:
- name: generate
image: golang:1.19-alpine
commands:
- apk add --no-cache curl make bash
- make all
- name: release
image: alpine:latest
commands:
- apk add --no-cache git
- cd .pub
- git clone --filter=tree:0 https://gitea.neur0tx.site/Neur0toxine/neur0tx.site.git
- cd neur0tx.site
- git checkout gitea-pages || git checkout -b gitea-pages
- cd ..
- mv neur0tx.site/.git .
- rm -rf neur0tx.site
- git add .
- git commit -a -m "`date +'%Y-%m-%d %R:%S'` > deploy"
- git push -u origin gitea-pages
- cd ..
- rm -rf .pub
trigger:
branch:
- master