debug
continuous-integration/drone/push Build is failing Details

init
shnee 3 years ago
parent e80f32ed0c
commit e8b0d0807e

@ -5,30 +5,36 @@ name: docker-build
steps: steps:
- name: submodules
image: alpine/git
environment:
SSH_KEY:
from_secret: ssh-key
commands:
- mkdir -p ~/.ssh
- printf "Host git.shnee.net\n Port 222\n" >> ~/.ssh/config
- eval $(ssh-agent -s)
- echo "$SSH_KEY" | ssh-add -
- ssh-keyscan -p 222 -H git.shnee.net > ~/.ssh/known_hosts 2> /dev/null
- git submodule update --init --recursive
- name: build - name: build
image: docker.shnee.net/shnee/cicd:latest image: docker.shnee.net/shnee/cicd:latest
# image: docker:dind # image: docker:dind
# pull: always # pull: always
volumes: volumes:
- name: dockersock # - name: dockersock
path: /var/run # path: /var/run
# - name: dockertmp - name: dockertmp
# path: /var/run/docker.sock path: /var/run/docker.sock
environment: environment:
SSH_KEY: # SSH_KEY:
from_secret: ssh-key # from_secret: ssh-key
DOCKER_CONFIG: DOCKER_CONFIG:
from_secret: dockerconfig from_secret: dockerconfig
commands: commands:
# Give docker enough time to start. # Give docker enough time to start.
- sleep 10 - sleep 5
- mkdir -p ~/.ssh
- printf "Host git.shnee.net\n Port 222\n" >> ~/.ssh/config
- eval $(ssh-agent -s)
- echo "$SSH_KEY" | ssh-add -
- ssh-keyscan -p 222 -H git.shnee.net > ~/.ssh/known_hosts 2> /dev/null
- git submodule update --init
- echo "$SSH_KEY"
- mkdir -p ~/.docker - mkdir -p ~/.docker
- echo "$DOCKER_CONFIG" | tee ~/.docker/config.json - echo "$DOCKER_CONFIG" | tee ~/.docker/config.json
# - sleep 600 # - sleep 600
@ -57,20 +63,20 @@ steps:
# when: # when:
# status: [success, failure] # status: [success, failure]
services: # services:
- name: docker # - name: docker
image: docker.shnee.net/shnee/cicd:latest # image: docker.shnee.net/shnee/cicd:latest
privileged: true # privileged: true
volumes: # volumes:
- name: dockersock # - name: dockersock
path: /var/run # path: /var/run
volumes: volumes:
- name: dockersock # - name: dockersock
temp: {} # temp: {}
# - name: dockertmp - name: dockertmp
# host: host:
# path: /var/run/docker.sock path: /var/run/docker.sock
clone: clone:
depth: 50 depth: 50

Loading…
Cancel
Save