|
|
@ -1,3 +1,27 @@
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: jfa-go
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
|
|
|
|
type: docker
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: fetch
|
|
|
|
|
|
|
|
image: docker:git
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
- git fetch --tags
|
|
|
|
|
|
|
|
- name: release
|
|
|
|
|
|
|
|
image: golang:latest
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
|
|
|
GITHUB_TOKEN:
|
|
|
|
|
|
|
|
from_secret: github_token
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
- apt update -y
|
|
|
|
|
|
|
|
- apt install build-essential python3-pip curl software-properties-common sed upx -y
|
|
|
|
|
|
|
|
- (curl -sL https://deb.nodesource.com/setup_14.x | bash -)
|
|
|
|
|
|
|
|
- apt install nodejs
|
|
|
|
|
|
|
|
- curl -sL https://git.io/goreleaser | bash
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
|
|
|
event: tag
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
name: jfa-go-git
|
|
|
|
name: jfa-go-git
|
|
|
|
kind: pipeline
|
|
|
|
kind: pipeline
|
|
|
@ -11,6 +35,12 @@ steps:
|
|
|
|
- apt install build-essential python3-pip curl software-properties-common sed upx -y
|
|
|
|
- apt install build-essential python3-pip curl software-properties-common sed upx -y
|
|
|
|
- (curl -sL https://deb.nodesource.com/setup_14.x | bash -)
|
|
|
|
- (curl -sL https://deb.nodesource.com/setup_14.x | bash -)
|
|
|
|
- apt install nodejs
|
|
|
|
- apt install nodejs
|
|
|
|
- make headless compress
|
|
|
|
- curl -sL https://git.io/goreleaser > goreleaser.sh
|
|
|
|
- sed -i 's#id="pwrJfPath" placeholder="Folder"#id="pwrJfPath" value="/jf" disabled#g' build/data/templates/setup.html
|
|
|
|
- chmod +x goreleaser.sh
|
|
|
|
|
|
|
|
- ./goreleaser.sh --snapshot --skip-publish --rm-dist
|
|
|
|
|
|
|
|
- wget https://builds.hrfee.pw/upload.py
|
|
|
|
|
|
|
|
- python3 upload.py https://builds.hrfee.pw hrfee jfa-go ./dist/*.zip
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
|
|
|
BUILDRONE_KEY:
|
|
|
|
|
|
|
|
from_secret: BUILDRONE_KEY
|
|
|
|
|
|
|
|
|
|
|
|