2020-10-08 20:06:36 +00:00
|
|
|
---
|
|
|
|
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
|
|
|
|
|
2020-09-29 22:28:14 +00:00
|
|
|
---
|
|
|
|
name: jfa-go-git
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: golang:latest
|
|
|
|
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
|
2020-10-08 20:06:36 +00:00
|
|
|
- curl -sL https://git.io/goreleaser > goreleaser.sh
|
|
|
|
- chmod +x goreleaser.sh
|
|
|
|
- ./goreleaser.sh --snapshot --skip-publish --rm-dist
|
|
|
|
- wget https://builds.hrfee.pw/upload.py
|
2020-10-08 20:48:15 +00:00
|
|
|
- pip3 install requests
|
2020-10-08 20:37:44 +00:00
|
|
|
- bash -c 'python3 upload.py https://builds.hrfee.pw hrfee jfa-go ./dist/*.tar.gz'
|
2020-10-08 20:10:31 +00:00
|
|
|
environment:
|
|
|
|
BUILDRONE_KEY:
|
|
|
|
from_secret: BUILDRONE_KEY
|
2020-09-29 22:28:14 +00:00
|
|
|
|