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.
  • Loading branch information
gsmet committed Dec 17, 2023
1 parent cea90ac commit 0f38872
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 @@ -860,7 +860,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: Setup Develocity Build Scan capture
uses: gradle/github-actions/maven-build-scan-setup@v0.2
with:
Expand Down

0 comments on commit 0f38872

Please sign in to comment.