add stuff
All checks were successful
ci/woodpecker/cron/build-dockerhub Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2023-08-24 12:12:04 +02:00
parent 6fac361ea1
commit f7642d0be9
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056
4 changed files with 40 additions and 0 deletions

2
.dockerignore Normal file
View file

@ -0,0 +1,2 @@
LICENSE
README.md

View file

@ -0,0 +1,25 @@
when:
- event: manual
- event: cron
cron: build_monthly
steps:
set-tags:
image: debian:12
commands:
- export TS=`date '+%Y%m%d'`
- echo "$TS" >> tags.txt
- echo "latest" >> tags.txt
- cat tags.txt
deploy-dockerhub:
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
repo: docker.io/lauralani/octodns-deploy
registry: docker.io
tags_file: ./tags.txt
username: lauralani
password:
from_secret: docker_token

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
# syntax=docker/dockerfile:1
FROM python:alpine
WORKDIR /app
COPY requirements.txt .
RUN pip3 install -r requirements.txt

4
requirements.txt Normal file
View file

@ -0,0 +1,4 @@
octodns == 1.0.0
octodns_hetzner == 0.0.2
octodns_ovh == 0.0.2
octodns_cloudflare == 0.0.2