debug
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-02-07 08:58:22 -05:00
parent e80f32ed0c
commit e8b0d0807e
+33 -27
View File
@@ -5,30 +5,36 @@ name: docker-build
steps:
- name: build
image: docker.shnee.net/shnee/cicd:latest
# image: docker:dind
# pull: always
volumes:
- name: dockersock
path: /var/run
# - name: dockertmp
# path: /var/run/docker.sock
- name: submodules
image: alpine/git
environment:
SSH_KEY:
from_secret: ssh-key
DOCKER_CONFIG:
from_secret: dockerconfig
commands:
# Give docker enough time to start.
- sleep 10
- 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"
- git submodule update --init --recursive
- name: build
image: docker.shnee.net/shnee/cicd:latest
# image: docker:dind
# pull: always
volumes:
# - name: dockersock
# path: /var/run
- name: dockertmp
path: /var/run/docker.sock
environment:
# SSH_KEY:
# from_secret: ssh-key
DOCKER_CONFIG:
from_secret: dockerconfig
commands:
# Give docker enough time to start.
- sleep 5
- mkdir -p ~/.docker
- echo "$DOCKER_CONFIG" | tee ~/.docker/config.json
# - sleep 600
@@ -57,20 +63,20 @@ steps:
# when:
# status: [success, failure]
services:
- name: docker
image: docker.shnee.net/shnee/cicd:latest
privileged: true
volumes:
- name: dockersock
path: /var/run
# services:
# - name: docker
# image: docker.shnee.net/shnee/cicd:latest
# privileged: true
# volumes:
# - name: dockersock
# path: /var/run
volumes:
- name: dockersock
temp: {}
# - name: dockertmp
# host:
# path: /var/run/docker.sock
# - name: dockersock
# temp: {}
- name: dockertmp
host:
path: /var/run/docker.sock
clone:
depth: 50