30 lines
662 B
YAML
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 |