+38
-37
@@ -19,65 +19,66 @@ steps:
|
|||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: docker.shnee.net/shnee/dind:19.03
|
image: docker.shnee.net/shnee/dind:23.0.1
|
||||||
# privileged: true
|
pull: always
|
||||||
# image: docker:dind
|
|
||||||
# pull: always
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
# - name: dockertmp
|
- name: docker-client-config
|
||||||
# path: /var/run/docker.sock
|
path: /root/.docker
|
||||||
|
# - name: fedora-pkg-cache
|
||||||
|
# path: /var/cache/dnf
|
||||||
environment:
|
environment:
|
||||||
# SSH_KEY:
|
DOCKER_CONFIG: /etc/docker/client_config
|
||||||
# from_secret: ssh-key
|
DOCKER_CLIENT_CONFIG:
|
||||||
DOCKER_CONFIG:
|
|
||||||
from_secret: dockerconfig
|
from_secret: dockerconfig
|
||||||
commands:
|
commands:
|
||||||
# Give docker enough time to start.
|
# Give docker enough time to start.
|
||||||
- sleep 600
|
- sleep 15
|
||||||
- mkdir -p ~/.docker
|
- mkdir -p "$DOCKER_CONFIG"
|
||||||
- echo "$DOCKER_CONFIG" | tee ~/.docker/config.json
|
- echo "$DOCKER_CLIENT_CONFIG" | tee "$DOCKER_CONFIG/config.json"
|
||||||
# - sleep 600
|
|
||||||
# - cat /tmp/config
|
|
||||||
# - false
|
|
||||||
- make no-cache build-all
|
- make no-cache build-all
|
||||||
- make push-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: >
|
gotifytitle: >
|
||||||
# {{repo.name}} - Pipeline Build {{build.number}}
|
{{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.shnee.net/shnee/dind:19.03
|
image: docker.shnee.net/shnee/dind:23.0.1
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
- name: docker-client-config
|
||||||
|
path: /root/.docker
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
temp: {}
|
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:
|
# host:
|
||||||
# path: /var/run/docker.sock
|
# path: /home/shnee/dev/ansible-fedora-docker/dnfcache
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
depth: 50
|
depth: 50
|
||||||
|
|||||||
Reference in New Issue
Block a user