Compare commits
3 Commits
4e11191eeb
...
2ed8ae1978
Author | SHA1 | Date | |
---|---|---|---|
2ed8ae1978 | |||
67a4f2b02e | |||
7d6169a8a0 |
39
.drone.yml
39
.drone.yml
@ -5,19 +5,42 @@ type: docker
|
|||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
settings:
|
|
||||||
mtu: 1450
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
# environment:
|
environment:
|
||||||
# DOCKER_PASSWORD:
|
DOCKER_USERNAME:
|
||||||
# from_secret: docker_password
|
from_secret: docker_username
|
||||||
|
DOCKER_PASSWORD:
|
||||||
|
from_secret: docker_password
|
||||||
commands:
|
commands:
|
||||||
- sleep 5 # give docker enough time to start
|
- sleep 5 # give docker enough time to start
|
||||||
- docker pull pommib/powerdns:4.6-bookworm
|
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
||||||
- docker pull debian:bookworm-slim
|
- ./debian/11/build.sh
|
||||||
- docker build --no-cache -t pommib/powerdns:4.6-bookworm ./debian/12/
|
- ./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:
|
services:
|
||||||
- name: docker
|
- name: docker
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
updates_available () {
|
updates_available () {
|
||||||
|
docker pull $1
|
||||||
if test "$(docker run -it --rm $1 /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
|
if test "$(docker run -it --rm $1 /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user