Skip to content

Commit

Permalink
Merge pull request #37798 from gsmet/docker-config
Browse files Browse the repository at this point in the history
Only update ~/.docker/config.json if it exists
  • Loading branch information
gsmet authored Dec 18, 2023
2 parents b4939c6 + 0f38872 commit 04d7531
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 04d7531

Please sign in to comment.