mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-28 03:50:10 +00:00
Compare commits
3 Commits
8f2a28e650
...
d7c94edc61
Author | SHA1 | Date | |
---|---|---|---|
d7c94edc61 | |||
46566fb98c | |||
010b95a2f6 |
15
.drone.yml
15
.drone.yml
@ -45,6 +45,9 @@ type: docker
|
|||||||
steps:
|
steps:
|
||||||
- name: build-deploy
|
- name: build-deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
environment:
|
||||||
|
BUILDRONE_KEY:
|
||||||
|
from_secret: BUILDRONE_KEY
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: ssh2_host
|
from_secret: ssh2_host
|
||||||
@ -52,6 +55,8 @@ steps:
|
|||||||
from_secret: ssh2_username
|
from_secret: ssh2_username
|
||||||
port:
|
port:
|
||||||
from_secret: ssh2_port
|
from_secret: ssh2_port
|
||||||
|
envs:
|
||||||
|
- buildrone_key
|
||||||
key:
|
key:
|
||||||
from_secret: ssh2_key
|
from_secret: ssh2_key
|
||||||
command_timeout: 50m
|
command_timeout: 50m
|
||||||
@ -59,15 +64,11 @@ steps:
|
|||||||
- /mnt/buildx/jfa-go/build.sh stable
|
- /mnt/buildx/jfa-go/build.sh stable
|
||||||
- wget https://builds.hrfee.pw/upload.py -O /mnt/buildx/jfa-go/jfa-go/upload.py
|
- wget https://builds.hrfee.pw/upload.py -O /mnt/buildx/jfa-go/jfa-go/upload.py
|
||||||
- pip3 install requests
|
- pip3 install requests
|
||||||
- bash -c 'cd /mnt/buildx/jfa-go/jfa-go && BUILDRONE_KEY=$(cat /mnt/buildx/jfa-go/key) python3 upload.py https://builds.hrfee.pw hrfee jfa-go --tag docker-stable=true'
|
- bash -c 'cd /mnt/buildx/jfa-go/jfa-go && python3 upload.py https://builds.hrfee.pw hrfee jfa-go --tag docker-stable=true'
|
||||||
- rm -f /mnt/buildx/jfa-go/jfa-go/upload.py
|
- rm -f /mnt/buildx/jfa-go/jfa-go/upload.py
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
volumes:
|
|
||||||
- name: ssh_key
|
|
||||||
host:
|
|
||||||
path: /root/.ssh/docker-build
|
|
||||||
---
|
---
|
||||||
name: jfa-go-git
|
name: jfa-go-git
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -152,10 +153,6 @@ trigger:
|
|||||||
exclude:
|
exclude:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: ssh_key
|
|
||||||
host:
|
|
||||||
path: /root/.ssh/docker-build
|
|
||||||
---
|
---
|
||||||
name: jfa-go-pr
|
name: jfa-go-pr
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
2
main.go
2
main.go
@ -628,7 +628,7 @@ func flagPassed(name string) (found bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// @title jfa-go internal API
|
// @title jfa-go internal API
|
||||||
// @version 0.4.0
|
// @version 0.5.1
|
||||||
// @description API for the jfa-go frontend
|
// @description API for the jfa-go frontend
|
||||||
// @contact.name Harvey Tindall
|
// @contact.name Harvey Tindall
|
||||||
// @contact.email hrfee@hrfee.dev
|
// @contact.email hrfee@hrfee.dev
|
||||||
|
Loading…
Reference in New Issue
Block a user