29 Commits

Author SHA1 Message Date
628aeef2cd chore(deps): update quay.io/skopeo/stable docker tag to v1.13.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-09-03 14:41:25 +02:00
df9a3b3a2c chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.36.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-09-03 13:53:28 +02:00
a4078dd08f chore(deps): update dependency quay.io/skopeo/stable to v1.13.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-07-31 01:23:10 +02:00
24807a6ff8 chore(deps): update dependency quay.io/skopeo/stable to v1.13.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-07-19 21:27:41 +02:00
59216ab0b7 fix: migrate to git.cryptic.systems
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-18 15:20:34 +02:00
cf586b6233 feat(ci): use docker.io/plugins/manifest v1.4.0
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-18 14:48:13 +02:00
04ac81d74b chore(deps): update dependency git.cryptic.systems/volker.raschek/markdownlint to v0.35.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-06-17 21:53:37 +02:00
417e09432a feat(ci): use git.cryptic.systems/volker.raschek/drone-email v0.1.2
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-17 15:52:52 +02:00
da523d085c chore(deps): update dependency git.cryptic.systems/volker.raschek/markdownlint to v0.34.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-06-09 09:12:33 +02:00
f770ad56a1 chore(deps): update dependency docker.io/plugins/docker to v20.14.4
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-06-08 21:32:03 +02:00
e8686285c9 feat(ci): use git.cryptic.systems/volker.raschek/markdownlint v0.33.0
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-08 19:38:26 +02:00
e311fa3d74 feat(ci): use docker.io/plugins/drone v20.10.9
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-08 19:24:51 +02:00
5c93c03cd4 fix: remove arch linux pkgs from cache
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-08 18:33:29 +02:00
ddeedd31e0 feat(ci): migrate to volker.raschek/git v1.2.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-08 18:25:41 +02:00
9570d576d8 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.33.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-01-07 19:53:32 +01:00
9f45c8b421 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.32.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-08-21 16:53:25 +02:00
aa97799089 fix(ci): remove docker socket volume
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-26 17:28:45 +02:00
035bd74a94 fix(ci): use docker.io/volkerraschek/drone-email:0.1.1
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-26 16:50:17 +02:00
dd59dda29e chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.32.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-07-25 13:12:18 +02:00
85a752d922 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.32.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-07-18 11:12:30 +02:00
64366523e1 fix(ci): resource limits
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-22 13:09:00 +02:00
da34da9680 fix(ci): use fully qualified image name
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-05-22 13:01:10 +02:00
068ec1862f fix(ci): use gitea to sync repo with github
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-03 17:40:11 +02:00
a0c4a58f02 chore(deps): update docker.io/volkerraschek/markdownlint docker tag to v0.31.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-02-09 19:29:55 +00:00
c4054c8a85 fix(ci): add package rules
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-30 18:41:18 +01:00
5d4d50702d chore(deps): update docker.io/volkerraschek/markdownlint docker tag to v0.30.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2021-11-20 12:02:08 +00:00
a0143c9f62 fix(ci): renovate rebase conditions
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-30 12:13:05 +02:00
b75bda85da fix(ci): add renovate config
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-24 16:34:53 +02:00
785b443266 fix(ci): dependencies and conditions
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-12 21:48:42 +02:00
5 changed files with 330 additions and 129 deletions

View File

@ -3,35 +3,39 @@ kind: pipeline
type: kubernetes
name: linter
platform:
os: linux
arch: amd64
clone:
disable: true
steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.2.1
- name: markdown lint
commands:
- markdownlint *.md
image: docker.io/volkerraschek/markdownlint:0.28.1
image: git.cryptic.systems/volker.raschek/markdownlint:0.36.0
resources:
limits:
cpu: 50
memory: 50M
cpu: 150
memory: 150M
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
image: git.cryptic.systems/volker.raschek/drone-email:0.1.2
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
@ -41,153 +45,311 @@ trigger:
event:
exclude:
- tag
---
kind: pipeline
type: docker
name: dry-run-amd64
clone:
disable: true
depends_on:
- linter
platform:
os: linux
arch: amd64
steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.2.1
- name: build
image: docker.io/plugins/docker:20.14.4
settings:
auto_tag: false
dockerfile: Dockerfile
dry_run: true
force_tag: true
no_cache: true
purge: true
mirror:
from_secret: docker_io_mirror
registry: git.cryptic.systems
repo: git.cryptic.systems/volker.raschek/dhcpd
tags: latest-amd64
username:
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: git_cryptic_systems_container_registry_password
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: git.cryptic.systems/volker.raschek/drone-email:0.1.2
when:
status:
- changed
- failure
trigger:
branch:
exclude:
- master
event:
- pull_request
- push
repo:
- volker.raschek/dhcpd-docker
---
kind: pipeline
type: docker
name: latest-amd64
clone:
disable: true
depends_on:
- linter
platform:
os: linux
arch: amd64
steps:
- name: build
image: plugins/docker
settings:
dockerfile: Dockerfile
auto_tag: false
tags: latest-amd64
repo: volkerraschek/dhcpd
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
no_cache: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
when:
branch:
- master
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.2.1
- name: notify
image: drillster/drone-email
- name: build
image: docker.io/plugins/docker:20.14.4
settings:
auto_tag: false
dockerfile: Dockerfile
force_tag: true
no_cache: true
purge: true
mirror:
from_secret: docker_io_mirror
registry: git.cryptic.systems
repo: git.cryptic.systems/volker.raschek/dhcpd
tags: latest-amd64
username:
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: git_cryptic_systems_container_registry_password
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: git.cryptic.systems/volker.raschek/drone-email:0.1.2
when:
status:
- changed
- failure
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
trigger:
branch:
- master
event:
exclude:
- tag
- cron
- push
repo:
- volker.raschek/dhcpd-docker
---
kind: pipeline
type: kubernetes
name: latest-manifest
clone:
disable: true
depends_on:
- latest-amd64
# docker.io/plugins/manifest only for amd64 architectures available
node_selector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.2.1
- name: build-manifest
image: plugins/manifest
image: docker.io/plugins/manifest:1.4.0
settings:
auto_tag: false
ignore_missing: true
spec: manifest.tmpl
username:
from_secret: container_image_registry_user
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: container_image_registry_password
from_secret: git_cryptic_systems_container_registry_password
- name: notify
image: docker.io/drillster/drone-email:latest
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: git.cryptic.systems/volker.raschek/drone-email:0.1.2
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
- failure
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/dhcpd-docker
---
kind: pipeline
type: kubernetes
name: latest-sync
clone:
disable: true
depends_on:
- latest-amd64
- latest-manifest
steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.2.1
- name: latest-sync
commands:
- skopeo sync --all --src=docker --src-creds=$SRC_CRED_USERNAME:$SRC_CRED_PASSWORD --dest=docker --dest-creds=$DEST_CRED_USERNAME:$DEST_CRED_PASSWORD git.cryptic.systems/volker.raschek/dhcpd docker.io/volkerraschek
environment:
SRC_CRED_USERNAME:
from_secret: git_cryptic_systems_container_registry_user
SRC_CRED_PASSWORD:
from_secret: git_cryptic_systems_container_registry_password
DEST_CRED_USERNAME:
from_secret: container_image_registry_user
DEST_CRED_PASSWORD:
from_secret: container_image_registry_password
image: quay.io/skopeo/stable:v1.13.2
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: git.cryptic.systems/volker.raschek/drone-email:0.1.2
resources:
limits:
cpu: 150
memory: 150M
when:
status:
- changed
- failure
trigger:
branch:
- master
event:
exclude:
- tag
- cron
- push
repo:
- volker.raschek/dhcpd-docker
---
kind: pipeline
type: docker
name: tagged-amd64
clone:
disable: true
platform:
os: linux
arch: amd64
steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.2.1
- name: build
image: plugins/docker
image: docker.io/plugins/docker:20.14.4
settings:
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: amd64
repo: volkerraschek/dhcpd
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
dockerfile: Dockerfile
force_tag: true
no_cache: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
purge: true
mirror:
from_secret: docker_io_mirror
registry: git.cryptic.systems
repo: git.cryptic.systems/volker.raschek/dhcpd
username:
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: git_cryptic_systems_container_registry_password
- name: notify
image: drillster/drone-email
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: git.cryptic.systems/volker.raschek/drone-email:0.1.2
when:
status:
- changed
- failure
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
trigger:
event:
- tag
@ -199,41 +361,54 @@ kind: pipeline
type: kubernetes
name: tagged-manifest
clone:
disable: true
depends_on:
- tagged-amd64
# docker.io/plugins/manifest only for amd64 architectures available
node_selector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.2.1
- name: build-manifest
image: plugins/manifest
image: docker.io/plugins/manifest:1.4.0
settings:
auto_tag: true
ignore_missing: true
spec: manifest.tmpl
username:
from_secret: container_image_registry_user
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: container_image_registry_password
from_secret: git_cryptic_systems_container_registry_password
- name: notify
image: docker.io/drillster/drone-email:latest
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: git.cryptic.systems/volker.raschek/drone-email:0.1.2
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
- failure
depends_on:
- tagged-amd64
trigger:
event:
- tag
@ -243,41 +418,49 @@ trigger:
---
kind: pipeline
type: kubernetes
name: sync
name: tagged-sync
platform:
os: linux
arch: amd64
clone:
disable: true
depends_on:
- tagged-manifest
steps:
- name: github
image: docker.io/appleboy/drone-git-push:latest
resources:
limits:
cpu: 50
memory: 25M
settings:
branch: master
remote: ssh://git@github.com/volker-raschek/dhcpd-docker.git
force: true
ssh_key:
from_secret: ssh_key
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.2.1
- name: tagged-sync
commands:
- skopeo sync --all --src=docker --src-creds=$SRC_CRED_USERNAME:$SRC_CRED_PASSWORD --dest=docker --dest-creds=$DEST_CRED_USERNAME:$DEST_CRED_PASSWORD git.cryptic.systems/volker.raschek/dhcpd docker.io/volkerraschek
environment:
SRC_CRED_USERNAME:
from_secret: git_cryptic_systems_container_registry_user
SRC_CRED_PASSWORD:
from_secret: git_cryptic_systems_container_registry_password
DEST_CRED_USERNAME:
from_secret: container_image_registry_user
DEST_CRED_PASSWORD:
from_secret: container_image_registry_password
image: quay.io/skopeo/stable:v1.13.2
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
image: git.cryptic.systems/volker.raschek/drone-email:0.1.2
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
@ -285,6 +468,6 @@ steps:
trigger:
event:
- push
- tag
repo:
- volker.raschek/dhcpd-docker

View File

@ -1,6 +1,7 @@
FROM docker.io/library/archlinux:latest
RUN pacman --sync --sysupgrade --refresh --noconfirm dhcp
RUN pacman --sync --sysupgrade --refresh --noconfirm dhcp && \
rm --recursive --force /var/cache/pacman/pkg
ADD rootfs/ .

View File

@ -5,8 +5,8 @@ CONTAINER_RUNTIME?=$(shell which docker)
# DHCPD_IMAGE_REGISTRY_NAME
# Defines the name of the new container to be built using several variables.
DHCPD_IMAGE_REGISTRY_NAME:=docker.io
DHCPD_IMAGE_REGISTRY_USER:=volkerraschek
DHCPD_IMAGE_REGISTRY_NAME:=git.cryptic.systems
DHCPD_IMAGE_REGISTRY_USER:=volker.raschek
DHCPD_IMAGE_NAMESPACE?=${DHCPD_IMAGE_REGISTRY_USER}
DHCPD_IMAGE_NAME:=dhcpd

View File

@ -1,4 +1,4 @@
image: volkerraschek/dhcpd:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
image: git.cryptic.systems/volker.raschek/dhcpd:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
@ -8,7 +8,7 @@ tags:
{{/if}}
manifests:
-
image: volkerraschek/dhcpd:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-amd64
image: git.cryptic.systems/volker.raschek/dhcpd:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-amd64
platform:
architecture: amd64
os: linux
os: linux

17
renovate.json Normal file
View File

@ -0,0 +1,17 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"assignees": [ "volker.raschek" ],
"automergeStrategy": "merge-commit",
"automergeType": "pr",
"labels": [ "renovate" ],
"packageRules": [
{
"addLabels": [ "renovate/droneci", "renovate/automerge" ],
"automerge": true,
"matchManagers": "droneci",
"matchUpdateTypes": [ "minor", "patch"]
}
],
"rebaseLabel": "renovate/rebase",
"rebaseWhen": "behind-base-branch"
}