Attempt to Add SSH Key
continuous-integration/drone/push Build is failing Details

init
shnee 3 years ago
parent 109ecebbd2
commit 999b0f34e1

@ -4,14 +4,19 @@ type: docker
name: docker-build name: docker-build
steps: steps:
- name: greeting - name: build
image: docker.shnee.net/shnee/dind:19.03 image: docker.shnee.net/shnee/dind:19.03
pull: always pull: always
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
environment:
SSH_KEY:
from_secret: ssh-key
commands: commands:
- sleep 5 # give docker enough time to start - sleep 5 # give docker enough time to start
- echo "$SSH_KEY" | ssh-add -
- ssh-keyscan -H git@git.shnee.net > ~/.ssh/known_hosts 2> /dev/null
- make - make
- make push-all - make push-all
@ -25,12 +30,14 @@ steps:
gotifypriority: 5 gotifypriority: 5
message: > message: >
{{#success build.status}} {{#success build.status}}
build {{build.number}} succeeded on {{repo.name}}. Good job {{build.author}} {{build.link}} build {{build.number}} succeeded on {{repo.name}}. Good job
{{build.author}} {{build.link}}
{{else}} {{else}}
build {{build.number}} failed on {{repo.name}}. Fix me please {{build.author}} {{build.link}} build {{build.number}} failed on {{repo.name}}. Fix me please
{{build.author}} {{build.link}}
{{/success}} {{/success}}
when: when:
status: [ success, failure ] status: [success, failure]
services: services:
- name: docker - name: docker

Loading…
Cancel
Save