Pipeline debug
continuous-integration/drone/push Build is passing Details

init
shnee 3 years ago
parent b0362c78df
commit 9639033f20

@ -19,65 +19,66 @@ steps:
- git submodule update --init --recursive
- name: build
image: docker.shnee.net/shnee/dind:19.03
# privileged: true
# image: docker:dind
# pull: always
image: docker.shnee.net/shnee/dind:23.0.1
pull: always
volumes:
- name: dockersock
path: /var/run
# - name: dockertmp
# path: /var/run/docker.sock
- name: docker-client-config
path: /root/.docker
# - name: fedora-pkg-cache
# path: /var/cache/dnf
environment:
# SSH_KEY:
# from_secret: ssh-key
DOCKER_CONFIG:
DOCKER_CONFIG: /etc/docker/client_config
DOCKER_CLIENT_CONFIG:
from_secret: dockerconfig
commands:
# Give docker enough time to start.
- sleep 600
- mkdir -p ~/.docker
- echo "$DOCKER_CONFIG" | tee ~/.docker/config.json
# - sleep 600
# - cat /tmp/config
# - false
- sleep 15
- mkdir -p "$DOCKER_CONFIG"
- echo "$DOCKER_CLIENT_CONFIG" | tee "$DOCKER_CONFIG/config.json"
- 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.shnee.net/shnee/dind:19.03
image: docker.shnee.net/shnee/dind:23.0.1
privileged: true
volumes:
- name: dockersock
path: /var/run
- name: docker-client-config
path: /root/.docker
volumes:
- name: dockersock
temp: {}
# - name: dockertmp
- name: docker-client-config
temp: {}
# TODO This isnt working and this path would only work while running locally.
# - name: fedora-pkg-cache
# host:
# path: /var/run/docker.sock
# path: /home/shnee/dev/ansible-fedora-docker/dnfcache
clone:
depth: 50

Loading…
Cancel
Save