1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-23 01:20:11 +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: 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
volumes:
- name: ssh_key - name: ssh_key
path: /root/drone_rsa
settings:
host: 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: 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