diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..d5d62f7 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,18 @@ +steps: + - name: Build and Publish Docker Image + when: + - branch: main + event: push + - event: tag + image: woodpeckerci/plugin-docker-buildx + settings: + platforms: linux/amd64,linux/arm64 + repo: ${CI_REG_HOST}:${CI_REG_PORT}/${CI_REPO_OWNER}/${CI_REPO_NAME} + tags: latest + registry: http://${CI_REG_HOST}:${CI_REG_PORT} + insecure: true + buildkit_config: "[registry.\"${CI_REG_HOST}:${CI_REG_PORT}\"]\n http = true\n insecure = true" + username: + from_secret: CI_REG_USER + password: + from_secret: CI_REG_TOKEN diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..099f197 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM alpine:latest +RUN apk --no-cache add dhcp-helper +EXPOSE 67 67/udp +ENTRYPOINT ["dhcp-helper", "-n"] diff --git a/README.md b/README.md index b5f3af0..1f0347f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # dhcp-helper +Containerised dhcp-helper for use with pihole + +Thanks to DerFetzer for providing the Dockerfile (https://discourse.pi-hole.net/t/dhcp-with-docker-compose-and-bridge-networking/17038) +