From b37bd7ed28cd61fbfa7190fe52df480896f30d8d Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 23 Feb 2021 15:29:46 +0200 Subject: [PATCH] Update Docker Client User Agent in CI --- .github/workflows/ci-actions.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci-actions.yml b/.github/workflows/ci-actions.yml index 6613511768909..b5af7c23e1036 100644 --- a/.github/workflows/ci-actions.yml +++ b/.github/workflows/ci-actions.yml @@ -89,6 +89,13 @@ jobs: path: ~/.m2/repository # refresh cache every month to avoid unlimited growth key: q2maven-${{ steps.get-date.outputs.date }} + # We do this so we can get better analytics + - name: Update Docker Client User Agent + shell: bash + run: | + cat ~/.docker/config.json + cat <<< $(jq '.HttpHeaders += {"User-Agent": "Quarkus-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json + cat ~/.docker/config.json - name: Build run: | mvn -T1C -e -B -DskipTests -DskipITs -Dinvoker.skip -Dno-format -Dtcks --settings .github/mvn-settings.xml clean install