neur0toxine.pages.neur0tx.site/.drone.yml
Neur0toxine 9ac1c9a68c
Some checks failed
continuous-integration/drone/push Build is failing
ssh remote for deploy
2023-11-12 22:45:10 +03:00

30 lines
662 B
YAML

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 git@git.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