From b2cc7d777fdcf90598f0306cba40e10e1421e542 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 3 Oct 2023 21:09:45 -0700 Subject: [PATCH 1/2] Add custom octodns-cloudflare action that dependabot can keep up-to-date --- .github/actions/octodns-cloudflare/Dockerfile | 1 + .github/dependabot.yml | 8 ++++++++ .github/workflows/push-deploy-on-push.yml | 2 +- .github/workflows/push-test-on-push.yml | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .github/actions/octodns-cloudflare/Dockerfile diff --git a/.github/actions/octodns-cloudflare/Dockerfile b/.github/actions/octodns-cloudflare/Dockerfile new file mode 100644 index 0000000..d2f46e1 --- /dev/null +++ b/.github/actions/octodns-cloudflare/Dockerfile @@ -0,0 +1 @@ +FROM octodns/cloudflare:2023.10 diff --git a/.github/dependabot.yml b/.github/dependabot.yml index da9432f..9e68065 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -19,3 +19,11 @@ updates: open-pull-requests-limit: 99 reviewers: - parkr +- package-ecosystem: docker + directory: "/.github/actions/octodns-cloudflare" + schedule: + interval: daily + time: "11:00" + open-pull-requests-limit: 99 + reviewers: + - parkr diff --git a/.github/workflows/push-deploy-on-push.yml b/.github/workflows/push-deploy-on-push.yml index 824f2b2..33fc9aa 100644 --- a/.github/workflows/push-deploy-on-push.yml +++ b/.github/workflows/push-deploy-on-push.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: octodns sync - uses: docker://octodns/cloudflare:2022.12 + uses: ./.github/actions/octodns-cloudflare env: CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} with: diff --git a/.github/workflows/push-test-on-push.yml b/.github/workflows/push-test-on-push.yml index 35bea83..d4ea6d3 100644 --- a/.github/workflows/push-test-on-push.yml +++ b/.github/workflows/push-test-on-push.yml @@ -7,7 +7,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: octodns test - uses: docker://octodns/cloudflare:2022.12 + uses: ./.github/actions/octodns-cloudflare env: CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} with: From f2d39296955a5f35869aaf0f9fe8450d37d58c92 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 3 Oct 2023 21:11:19 -0700 Subject: [PATCH 2/2] Use new octodns_cloudflare class path --- config/production.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/production.yaml b/config/production.yaml index b829a39..fcb8d4c 100644 --- a/config/production.yaml +++ b/config/production.yaml @@ -4,7 +4,7 @@ providers: class: octodns.provider.yaml.YamlProvider directory: ./config cloudflare: - class: octodns.provider.cloudflare.CloudflareProvider + class: octodns_cloudflare.CloudflareProvider token: env/CLOUDFLARE_TOKEN zones: