add public release volume to build pipeline
Allows us to get the latest build at any time from: https://public.deadbeef.codes/build/
This commit is contained in:
parent
42e5679570
commit
3cbd6eace2
16
.drone.yml
16
.drone.yml
@ -19,6 +19,9 @@ steps:
|
|||||||
- name: build hyp linux-amd64
|
- name: build hyp linux-amd64
|
||||||
image: registry.deadbeef.codes/hyp-build:latest
|
image: registry.deadbeef.codes/hyp-build:latest
|
||||||
pull: always
|
pull: always
|
||||||
|
volumes:
|
||||||
|
- name: publicrelease
|
||||||
|
path: /dist
|
||||||
environment:
|
environment:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
@ -27,15 +30,19 @@ steps:
|
|||||||
- mkdir /dist
|
- mkdir /dist
|
||||||
- cd hyp
|
- cd hyp
|
||||||
- go build .
|
- go build .
|
||||||
- mv hyp /dist
|
- mv -f hyp /dist
|
||||||
- cd ../hypd/server
|
- cd ../hypd/server
|
||||||
- go generate
|
- go generate
|
||||||
- cd ..
|
- cd ..
|
||||||
- go build .
|
- go build .
|
||||||
- mv hypd /dist
|
- mv -f hypd /dist
|
||||||
|
|
||||||
- name: release
|
- name: release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
pull: always
|
||||||
|
volumes:
|
||||||
|
- name: publicrelease
|
||||||
|
path: /dist
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: drone_token
|
from_secret: drone_token
|
||||||
@ -46,3 +53,8 @@ steps:
|
|||||||
include:
|
include:
|
||||||
- release
|
- release
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: publicrelease
|
||||||
|
host:
|
||||||
|
path: /data/public/build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user