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:
|
||||
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
|
||||
volumes:
|
||||
- name: ssh_key
|
||||
@ -61,11 +76,23 @@ steps:
|
||||
key_path: /root/drone_rsa
|
||||
script:
|
||||
- /home/rock64/jfa-go-build/build.sh
|
||||
|
||||
volumes:
|
||||
- name: ssh_key
|
||||
host:
|
||||
path: /root/.ssh/docker-build
|
||||
- name: armhf-ssh
|
||||
image: appleboy/drone-ssh
|
||||
volumes:
|
||||
- name: ssh_key
|
||||
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:
|
||||
branch:
|
||||
@ -76,6 +103,10 @@ trigger:
|
||||
- pull_request
|
||||
|
||||
---
|
||||
volumes:
|
||||
- name: ssh_key
|
||||
host:
|
||||
path: /root/.ssh/docker-build
|
||||
name: jfa-go-pr
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
Loading…
Reference in New Issue
Block a user