From b3141c58a3c6d408ba03aec49c00fe3907db0457 Mon Sep 17 00:00:00 2001 From: Yi Huang Date: Sun, 25 Jun 2023 14:53:49 -0700 Subject: [PATCH] Fix ownership issue in dockers (#3726) The previous attempt still failed the build. `git config --global safe.directory '*'` worked in another PR as an individual step in a job. So, try this instead. --- .docker/{linux-20.04 => ubuntu-20.04}/Dockerfile | 2 +- .../arm-cross-compile-sources.list | 0 .docker/{linux-22.04 => ubuntu-22.04}/Dockerfile | 2 +- .../arm-cross-compile-sources.list | 0 .github/workflows/docker-publish-xcomp.yml | 12 ++++++------ 5 files changed, 8 insertions(+), 8 deletions(-) rename .docker/{linux-20.04 => ubuntu-20.04}/Dockerfile (97%) rename .docker/{linux-20.04 => ubuntu-20.04}/arm-cross-compile-sources.list (100%) rename .docker/{linux-22.04 => ubuntu-22.04}/Dockerfile (97%) rename .docker/{linux-22.04 => ubuntu-22.04}/arm-cross-compile-sources.list (100%) diff --git a/.docker/linux-20.04/Dockerfile b/.docker/ubuntu-20.04/Dockerfile similarity index 97% rename from .docker/linux-20.04/Dockerfile rename to .docker/ubuntu-20.04/Dockerfile index cbd32abc27..f51bee35ec 100644 --- a/.docker/linux-20.04/Dockerfile +++ b/.docker/ubuntu-20.04/Dockerfile @@ -67,5 +67,5 @@ RUN apt-get install --no-install-recommends -y liblttng-ust-dev:arm64 \ libnuma-dev:armhf \ && rm -rf /var/lib/apt/lists/* -RUN git config --system --add safe.directory "*" +RUN git config --global safe.directory '*' diff --git a/.docker/linux-20.04/arm-cross-compile-sources.list b/.docker/ubuntu-20.04/arm-cross-compile-sources.list similarity index 100% rename from .docker/linux-20.04/arm-cross-compile-sources.list rename to .docker/ubuntu-20.04/arm-cross-compile-sources.list diff --git a/.docker/linux-22.04/Dockerfile b/.docker/ubuntu-22.04/Dockerfile similarity index 97% rename from .docker/linux-22.04/Dockerfile rename to .docker/ubuntu-22.04/Dockerfile index 16371337e9..46a4f27b9d 100644 --- a/.docker/linux-22.04/Dockerfile +++ b/.docker/ubuntu-22.04/Dockerfile @@ -67,4 +67,4 @@ RUN apt-get --no-install-recommends install -y liblttng-ust-dev:arm64 \ libnuma-dev:armhf \ && rm -rf /var/lib/apt/lists/* -RUN git config --system --add safe.directory "*" +RUN git config --global safe.directory '*' diff --git a/.docker/linux-22.04/arm-cross-compile-sources.list b/.docker/ubuntu-22.04/arm-cross-compile-sources.list similarity index 100% rename from .docker/linux-22.04/arm-cross-compile-sources.list rename to .docker/ubuntu-22.04/arm-cross-compile-sources.list diff --git a/.github/workflows/docker-publish-xcomp.yml b/.github/workflows/docker-publish-xcomp.yml index fd3e9ab975..c5e26f45e1 100644 --- a/.github/workflows/docker-publish-xcomp.yml +++ b/.github/workflows/docker-publish-xcomp.yml @@ -5,14 +5,14 @@ on: branches: [ main ] paths: - .github/workflows/docker-publish-xcomp.yml - - .docker/linux-20.04 - - .docker/linux-22.04 + - .docker/ubuntu-20.04/* + - .docker/ubuntu-22.04/* pull_request: branches: [ main ] paths: - .github/workflows/docker-publish-xcomp.yml - - .docker/linux-20.04 - - .docker/linux-22.04 + - .docker/ubuntu-20.04/* + - .docker/ubuntu-22.04/* permissions: read-all @@ -67,8 +67,8 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 with: - context: .docker/linux-${{ matrix.version }} - file: .docker/linux-${{ matrix.version }}/Dockerfile + context: .docker/ubuntu-${{ matrix.version }} + file: .docker/ubuntu-${{ matrix.version }}/Dockerfile push: ${{ github.event_name != 'pull_request' }} tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }} labels: ${{ steps.meta.outputs.labels }}