mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
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 }} ```
This commit is contained in:
parent
00d5348ee6
commit
62da17e333
1 changed files with 1 additions and 0 deletions
1
.github/workflows/docker-build-test.yml
vendored
1
.github/workflows/docker-build-test.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue