From f7642d0be9d713d52ceae11f2463029665badc07 Mon Sep 17 00:00:00 2001 From: lauralani Date: Thu, 24 Aug 2023 12:12:04 +0200 Subject: [PATCH] add stuff --- .dockerignore | 2 ++ .woodpecker/build-dockerhub.yaml | 25 +++++++++++++++++++++++++ Dockerfile | 9 +++++++++ requirements.txt | 4 ++++ 4 files changed, 40 insertions(+) create mode 100644 .dockerignore create mode 100644 .woodpecker/build-dockerhub.yaml create mode 100644 Dockerfile create mode 100644 requirements.txt diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9b63d53 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +LICENSE +README.md \ No newline at end of file diff --git a/.woodpecker/build-dockerhub.yaml b/.woodpecker/build-dockerhub.yaml new file mode 100644 index 0000000..d627e4c --- /dev/null +++ b/.woodpecker/build-dockerhub.yaml @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3015f57 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +# syntax=docker/dockerfile:1 + +FROM python:alpine + +WORKDIR /app + +COPY requirements.txt . + +RUN pip3 install -r requirements.txt \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..12dc602 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +octodns == 1.0.0 +octodns_hetzner == 0.0.2 +octodns_ovh == 0.0.2 +octodns_cloudflare == 0.0.2 \ No newline at end of file