3439: Add git config about ownership in Docker CI r=curquiza a=curquiza

The docker CI si failing because of git usage: https://github.com/meilisearch/meilisearch/actions/runs/4053334082/jobs/6973827940

<img width="960" alt="Capture d’écran 2023-01-31 à 12 12 44" src="https://user-images.githubusercontent.com/20380692/215745119-b866bcf2-7077-48e4-b018-7a2085b23680.png">


> fatal: detected dubious ownership in repository at '/home/meili/actions-runner/_work/meilisearch/meilisearch'

I made some research and I found out this https://github.com/actions/runner-images/issues/6775

Co-authored-by: curquiza <clementine@meilisearch.com>
This commit is contained in:
bors[bot] 2023-01-31 12:58:59 +00:00 committed by GitHub
commit 2f8ebd0501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,9 @@ jobs:
- name: Set build-args for Docker buildx - name: Set build-args for Docker buildx
id: build-metadata id: build-metadata
run: | run: |
# Define ownership
git config --global --add safe.directory /home/meili/actions-runner/_work/meilisearch/meilisearch
# Extract commit date # Extract commit date
commit_date=$(git show -s --format=%cd --date=iso-strict ${{ github.sha }}) commit_date=$(git show -s --format=%cd --date=iso-strict ${{ github.sha }})