mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
done: use sshkey from secret, not file
update to appleboy/drone-ssh requires special ownership of the ssh key file, which I can't be bothered with, so we'll source it from a secret instead. Probably better anyway, that's how the other key was already.
This commit is contained in:
parent
47536f3e63
commit
7223981280
16
.drone.yml
16
.drone.yml
@ -45,9 +45,6 @@ type: docker
|
|||||||
steps:
|
steps:
|
||||||
- name: build-deploy
|
- name: build-deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
volumes:
|
|
||||||
- name: ssh_key
|
|
||||||
path: /root/drone_rsa
|
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: ssh2_host
|
from_secret: ssh2_host
|
||||||
@ -55,9 +52,8 @@ steps:
|
|||||||
from_secret: ssh2_username
|
from_secret: ssh2_username
|
||||||
port:
|
port:
|
||||||
from_secret: ssh2_port
|
from_secret: ssh2_port
|
||||||
volumes:
|
key:
|
||||||
- /root/.ssh/docker-build:/root/drone_rsa
|
from_secret: ssh2_key
|
||||||
key_path: /root/drone_rsa
|
|
||||||
command_timeout: 50m
|
command_timeout: 50m
|
||||||
script:
|
script:
|
||||||
- /mnt/buildx/jfa-go/build.sh stable
|
- /mnt/buildx/jfa-go/build.sh stable
|
||||||
@ -128,9 +124,6 @@ type: docker
|
|||||||
steps:
|
steps:
|
||||||
- name: build-deploy
|
- name: build-deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
volumes:
|
|
||||||
- name: ssh_key
|
|
||||||
path: /root/drone_rsa
|
|
||||||
environment:
|
environment:
|
||||||
BUILDRONE_KEY:
|
BUILDRONE_KEY:
|
||||||
from_secret: BUILDRONE_KEY
|
from_secret: BUILDRONE_KEY
|
||||||
@ -141,11 +134,10 @@ steps:
|
|||||||
from_secret: ssh2_username
|
from_secret: ssh2_username
|
||||||
port:
|
port:
|
||||||
from_secret: ssh2_port
|
from_secret: ssh2_port
|
||||||
volumes:
|
|
||||||
- /root/.ssh/docker-build:/root/drone_rsa
|
|
||||||
envs:
|
envs:
|
||||||
- buildrone_key
|
- buildrone_key
|
||||||
key_path: /root/drone_rsa
|
key:
|
||||||
|
from_secret: ssh2_key
|
||||||
command_timeout: 50m
|
command_timeout: 50m
|
||||||
script:
|
script:
|
||||||
- /mnt/buildx/jfa-go/build.sh
|
- /mnt/buildx/jfa-go/build.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user