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

init
shnee 3 years ago
parent 522ab96803
commit 6df76e0b21

@ -6,48 +6,57 @@ name: docker-build
steps: steps:
- name: build - name: build
image: docker:dind image: docker.shnee.net/shnee/cicd:latest
pull: always # image: docker:dind
# pull: always
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
environment: environment:
SSH_KEY: SSH_KEY:
from_secret: ssh-key from_secret: ssh-key
DOCKER_CONFIG:
from_secret: dockerconfig
commands: commands:
# - sleep 5 # give docker enough time to start # Give docker enough time to start.
# - mkdir ~/.ssh - sleep 10
# - printf "Host git.shnee.net\n Port 222\n" >> ~/.ssh/config - mkdir ~/.ssh
# - eval $(ssh-agent -s) - printf "Host git.shnee.net\n Port 222\n" >> ~/.ssh/config
# - echo "$SSH_KEY" | ssh-add - - eval $(ssh-agent -s)
# - ssh-keyscan -p 222 -H git.shnee.net > ~/.ssh/known_hosts 2> /dev/null - echo "$SSH_KEY" | ssh-add -
# - git submodule update --init - ssh-keyscan -p 222 -H git.shnee.net > ~/.ssh/known_hosts 2> /dev/null
- docker build . -f Dockerfile.36 -t test:36 - git submodule update --init
# - make # - echo "$SSH_KEY"
# - make push-all - mkdir -p ~/.docker
- echo "$DOCKER_CONFIG" | tee ~/.docker/config.json
# - sleep 600
# - cat /tmp/config
# - false
- make no-cache build-all
- make push-all
# - name: gotify - name: gotify
# image: fredix/drone-gotify image: fredix/drone-gotify
# settings: settings:
# gotifytoken: gotifytoken:
# from_secret: gotify-token from_secret: gotify-token
# gotifyendpoint: http://push.shnee.net gotifyendpoint: http://push.shnee.net
# gotifytitle: "{{repo.name}} - Pipeline Build {{build.number}}" gotifytitle: "{{repo.name}} - Pipeline Build {{build.number}}"
# gotifypriority: 5 gotifypriority: 5
# message: > message: >
# {{#success build.status}} {{#success build.status}}
# build {{build.number}} succeeded on {{repo.name}}. Good job build {{build.number}} succeeded on {{repo.name}}. Good job
# {{build.author}} {{build.link}} {{build.author}} {{build.link}}
# {{else}} {{else}}
# build {{build.number}} failed on {{repo.name}}. Fix me please build {{build.number}} failed on {{repo.name}}. Fix me please
# {{build.author}} {{build.link}} {{build.author}} {{build.link}}
# {{/success}} {{/success}}
# when: when:
# status: [success, failure] status: [success, failure]
services: services:
- name: docker - name: docker
image: docker:dind image: docker.shnee.net/shnee/cicd:latest
privileged: true privileged: true
volumes: volumes:
- name: dockersock - name: dockersock
@ -56,6 +65,10 @@ services:
volumes: volumes:
- name: dockersock - name: dockersock
temp: {} temp: {}
# - name: dockertmp
# host:
# path: /var/run/docker.sock
image_pull_secrets: image_pull_secrets:
- dockerconfig - dockerconfig

Loading…
Cancel
Save