1
0
Fork 0

Compare commits

..

3 Commits

Author SHA1 Message Date
Pim van den Berg 2ed8ae1978 add drone-ci
continuous-integration/drone/push Build is passing Details
2022-07-22 19:58:33 +02:00
Pim van den Berg 67a4f2b02e exclude .swp files in inotifywait 2022-07-22 19:33:40 +02:00
Pim van den Berg 7d6169a8a0 build/rebuild.sh: rebuild when current image has pending updates 2022-07-22 19:33:40 +02:00
2 changed files with 32 additions and 8 deletions

View File

@ -5,19 +5,42 @@ type: docker
steps:
- name: build
image: docker:dind
settings:
mtu: 1450
volumes:
- name: dockersock
path: /var/run
# environment:
# DOCKER_PASSWORD:
# from_secret: docker_password
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
commands:
- sleep 5 # give docker enough time to start
- docker pull pommib/powerdns:4.6-bookworm
- docker pull debian:bookworm-slim
- docker build --no-cache -t pommib/powerdns:4.6-bookworm ./debian/12/
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- ./debian/11/build.sh
- ./debian/12/build.sh
when:
branch:
- master
event:
- push
- 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
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- ./build/rebuild.sh
when:
event:
- cron
services:
- name: docker

View File

@ -1,6 +1,7 @@
#!/bin/sh
updates_available () {
docker pull $1
if test "$(docker run -it --rm $1 /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
return 0
else