1
0
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:
Harvey Tindall 2021-02-11 16:11:07 +00:00
parent a9d48083fd
commit 5cda12dd3b
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -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: armhf-ssh
image: appleboy/drone-ssh
volumes:
- name: ssh_key
path: /root/drone_rsa
settings:
host:
path: /root/.ssh/docker-build
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