2024-04-14 04:56:21 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
path: src/deadbeef.codes/steven/hyp
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: create build environment
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: registry.deadbeef.codes/hyp-build
|
|
|
|
when:
|
|
|
|
target:
|
|
|
|
include:
|
|
|
|
- environment
|
|
|
|
|
2024-04-15 00:19:52 +00:00
|
|
|
|
|
|
|
- name: build hyp (client) linux-amd64
|
2024-04-14 04:56:21 +00:00
|
|
|
image: registry.deadbeef.codes/hyp-build:latest
|
|
|
|
pull: always
|
2024-04-14 14:49:10 +00:00
|
|
|
volumes:
|
|
|
|
- name: publicrelease
|
|
|
|
path: /dist
|
2024-04-14 04:56:21 +00:00
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
2024-04-14 15:54:43 +00:00
|
|
|
- . /root/.profile
|
2024-04-14 04:56:21 +00:00
|
|
|
- cd hyp
|
2024-04-15 01:18:35 +00:00
|
|
|
- go build -o /dist/hyp-linux-amd64 .
|
2024-04-14 04:56:21 +00:00
|
|
|
|
2024-04-15 00:19:52 +00:00
|
|
|
|
|
|
|
- name: build hypd (server) linux-amd64
|
|
|
|
image: registry.deadbeef.codes/hyp-build:latest
|
|
|
|
pull: always
|
|
|
|
volumes:
|
|
|
|
- name: publicrelease
|
|
|
|
path: /dist
|
|
|
|
environment:
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- . /root/.profile
|
|
|
|
- cd hypd/server
|
|
|
|
- go generate
|
|
|
|
- cd ..
|
2024-04-15 01:18:35 +00:00
|
|
|
- go build -o /dist/hypd-linux-amd64 .
|
2024-04-15 00:19:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
- name: build hyp (client) windows-amd64
|
|
|
|
image: registry.deadbeef.codes/hyp-build:latest
|
|
|
|
pull: always
|
|
|
|
volumes:
|
|
|
|
- name: publicrelease
|
|
|
|
path: /dist
|
|
|
|
environment:
|
|
|
|
GOOS: windows
|
|
|
|
GOARCH: amd64
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
commands:
|
|
|
|
- . /root/.profile
|
|
|
|
- cd hyp
|
2024-04-15 01:18:35 +00:00
|
|
|
- go build -o /dist/hyp-windows-amd64.exe .
|
2024-04-15 00:19:52 +00:00
|
|
|
|
|
|
|
|
2024-04-14 04:56:21 +00:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
2024-04-14 14:49:10 +00:00
|
|
|
pull: always
|
|
|
|
volumes:
|
|
|
|
- name: publicrelease
|
|
|
|
path: /dist
|
2024-04-14 04:56:21 +00:00
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: drone_token
|
|
|
|
base_url: https://deadbeef.codes
|
2024-04-15 01:05:11 +00:00
|
|
|
files: /dist/*
|
2024-04-14 05:00:02 +00:00
|
|
|
when:
|
2024-04-15 00:39:08 +00:00
|
|
|
event:
|
|
|
|
- tag
|
2024-04-15 01:05:11 +00:00
|
|
|
|
2024-04-14 14:49:10 +00:00
|
|
|
volumes:
|
|
|
|
- name: publicrelease
|
|
|
|
host:
|
2024-04-15 01:18:35 +00:00
|
|
|
path: /data/public/build/hyp
|
2024-04-14 14:49:10 +00:00
|
|
|
|