From 7147aebaf040c28eb71359ee6580acbe9361ce0d Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Mon, 28 Oct 2024 16:17:13 -0600 Subject: [PATCH 1/2] add docker secrets --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 70fd137f..28801de5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,9 @@ updates: schedule: interval: "weekly" open-pull-requests-limit: 10 +registries: + docker_hub: + type: "docker-registry" + url: "https://index.docker.io/v1/" + username: "${{ secrets.DOCKERHUB_USERNAME }}" + password: "${{ secrets.DOCKERHUB_TOKEN }}" From 1eaedeb7469e7d22efb1bdd6d5e859716b098eab Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Mon, 28 Oct 2024 16:38:13 -0600 Subject: [PATCH 2/2] remove dependabot docker secrets, only do docker workflow on non-dependabot branches --- .github/dependabot.yml | 6 ------ .github/workflows/docker.yml | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 28801de5..70fd137f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,9 +5,3 @@ updates: schedule: interval: "weekly" open-pull-requests-limit: 10 -registries: - docker_hub: - type: "docker-registry" - url: "https://index.docker.io/v1/" - username: "${{ secrets.DOCKERHUB_USERNAME }}" - password: "${{ secrets.DOCKERHUB_TOKEN }}" diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 76d25a12..2d7eab50 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -14,6 +14,7 @@ on: jobs: docker: runs-on: ubuntu-latest + if: "!startsWith(github.ref_name, 'dependabot/')" steps: - uses: actions/checkout@v2 - name: Set up JDK 11