Skip to content

Commit

Permalink
Only update ~/.docker/config.json if it exists
Browse files Browse the repository at this point in the history
Not having this file is probably due to GitHub infra issues but let's
not fail the build for that.

(cherry picked from commit 0f38872)
  • Loading branch information
gsmet committed Dec 18, 2023
1 parent ad057b6 commit 9580343
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci-actions-incremental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,9 @@ jobs:
# We do this so we can get better analytics for the downloaded version of the build images
- name: Update Docker Client User Agent
run: |
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Quarkus-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json
if [ -f ~/.docker/config.json ]; then
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Quarkus-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json
fi
- name: Build
env:
TEST_MODULES: ${{matrix.test-modules}}
Expand Down

0 comments on commit 9580343

Please sign in to comment.