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:
- name: build
image: docker:dind
pull: always
image: docker.shnee.net/shnee/cicd:latest
# image: docker:dind
# pull: always
volumes:
- name: dockersock
path: /var/run
environment:
SSH_KEY:
from_secret: ssh-key
DOCKER_CONFIG:
from_secret: dockerconfig
commands:
# - sleep 5 # give docker enough time to start
# - mkdir ~/.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
- docker build . -f Dockerfile.36 -t test:36
# - make
# - make push-all
# Give docker enough time to start.
- sleep 10
- mkdir ~/.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
- echo "$DOCKER_CONFIG" | tee ~/.docker/config.json
# - sleep 600
# - cat /tmp/config
# - false
- make no-cache build-all
- make push-all
# - name: gotify
# image: fredix/drone-gotify
# settings:
# gotifytoken:
# from_secret: gotify-token
# gotifyendpoint: http://push.shnee.net
# gotifytitle: "{{repo.name}} - Pipeline Build {{build.number}}"
# gotifypriority: 5
# message: >
# {{#success build.status}}
# build {{build.number}} succeeded on {{repo.name}}. Good job
# {{build.author}} {{build.link}}
# {{else}}
# build {{build.number}} failed on {{repo.name}}. Fix me please
# {{build.author}} {{build.link}}
# {{/success}}
# when:
# status: [success, failure]
- name: gotify
image: fredix/drone-gotify
settings:
gotifytoken:
from_secret: gotify-token
gotifyendpoint: http://push.shnee.net
gotifytitle: "{{repo.name}} - Pipeline Build {{build.number}}"
gotifypriority: 5
message: >
{{#success build.status}}
build {{build.number}} succeeded on {{repo.name}}. Good job
{{build.author}} {{build.link}}
{{else}}
build {{build.number}} failed on {{repo.name}}. Fix me please
{{build.author}} {{build.link}}
{{/success}}
when:
status: [success, failure]
services:
- name: docker
image: docker:dind
image: docker.shnee.net/shnee/cicd:latest
privileged: true
volumes:
- name: dockersock
@ -56,6 +65,10 @@ services:
volumes:
- name: dockersock
temp: {}
# - name: dockertmp
# host:
# path: /var/run/docker.sock
image_pull_secrets:
- dockerconfig

Loading…
Cancel
Save