Pim van den Berg
197a87f268
All checks were successful
continuous-integration/drone/push Build is passing
https://blog.zespre.com/dind-mtu-size-matters.html
92 lines
1.7 KiB
YAML
92 lines
1.7 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: build
|
|
|
|
steps:
|
|
- name: build
|
|
image: docker:dind
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run
|
|
environment:
|
|
DOCKER_USERNAME:
|
|
from_secret: docker_username
|
|
DOCKER_PASSWORD:
|
|
from_secret: docker_password
|
|
commands:
|
|
- sleep 5 # give docker enough time to start
|
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
|
- ./debian/11/build.sh
|
|
- ./debian/12/build.sh
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
|
|
services:
|
|
- name: docker
|
|
image: docker:dind
|
|
privileged: true
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run
|
|
command:
|
|
- dockerd-entrypoint.sh
|
|
- dockerd
|
|
- --host=unix:///var/run/docker.sock
|
|
- --mtu=1492
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
temp: {}
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: rebuild
|
|
|
|
steps:
|
|
- name: rebuild
|
|
image: docker:dind
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run
|
|
environment:
|
|
DOCKER_USERNAME:
|
|
from_secret: docker_username
|
|
DOCKER_PASSWORD:
|
|
from_secret: docker_password
|
|
commands:
|
|
- sleep 5 # give docker enough time to start
|
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
|
- ./build/rebuild.sh
|
|
|
|
services:
|
|
- name: docker
|
|
image: docker:dind
|
|
privileged: true
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run
|
|
command:
|
|
- dockerd-entrypoint.sh
|
|
- dockerd
|
|
- --host=unix:///var/run/docker.sock
|
|
- --mtu=1492
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
temp: {}
|
|
|
|
trigger:
|
|
event:
|
|
- cron
|
|
cron:
|
|
- rebuild
|