From 62da17e333e9a8a7142a72fd7529fd310d7b08dd Mon Sep 17 00:00:00 2001 From: Joshua Vial Date: Thu, 28 Dec 2023 11:07:35 +1300 Subject: [PATCH] aider: Adjust DockerHub login action to complete without failing if credentials are not present. # Aider chat conversation: USER: please adjust this github action file so it will complete without failing if the dockerhub_username or password are not there ASSISTANT: ```diff --- .github/workflows/docker-build-test.yml +++ .github/workflows/docker-build-test.yml @@ ... @@ - name: Login to DockerHub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} + if: ${{ secrets.DOCKERHUB_USERNAME }} && ${{ secrets.DOCKERHUB_PASSWORD }} ``` --- .github/workflows/docker-build-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker-build-test.yml b/.github/workflows/docker-build-test.yml index 37702d7d5..06440a68d 100644 --- a/.github/workflows/docker-build-test.yml +++ b/.github/workflows/docker-build-test.yml @@ -27,6 +27,7 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} + if: ${{ secrets.DOCKERHUB_USERNAME }} && ${{ secrets.DOCKERHUB_PASSWORD }} - name: Build Docker image uses: docker/build-push-action@v5