mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
separate into pipelines, add armhf
This commit is contained in:
parent
a9d48083fd
commit
5cda12dd3b
43
.drone.yml
43
.drone.yml
@ -44,7 +44,22 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
BUILDRONE_KEY:
|
BUILDRONE_KEY:
|
||||||
from_secret: BUILDRONE_KEY
|
from_secret: BUILDRONE_KEY
|
||||||
- name: arm-ssh
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
- go1.16
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
---
|
||||||
|
name: arm-docker-git
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: arm64-ssh
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
volumes:
|
volumes:
|
||||||
- name: ssh_key
|
- name: ssh_key
|
||||||
@ -61,11 +76,23 @@ steps:
|
|||||||
key_path: /root/drone_rsa
|
key_path: /root/drone_rsa
|
||||||
script:
|
script:
|
||||||
- /home/rock64/jfa-go-build/build.sh
|
- /home/rock64/jfa-go-build/build.sh
|
||||||
|
- name: armhf-ssh
|
||||||
volumes:
|
image: appleboy/drone-ssh
|
||||||
- name: ssh_key
|
volumes:
|
||||||
host:
|
- name: ssh_key
|
||||||
path: /root/.ssh/docker-build
|
path: /root/drone_rsa
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: ssh_host
|
||||||
|
username:
|
||||||
|
from_secret: ssh_username
|
||||||
|
port:
|
||||||
|
from_secret: ssh_port
|
||||||
|
volumes:
|
||||||
|
- /root/.ssh/docker-build:/root/drone_rsa
|
||||||
|
key_path: /root/drone_rsa
|
||||||
|
script:
|
||||||
|
- ssh pi /home/pi/jfa-go-build/build.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
@ -76,6 +103,10 @@ trigger:
|
|||||||
- 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
|
||||||
type: docker
|
type: docker
|
||||||
|
Loading…
Reference in New Issue
Block a user