Skip to content

Commit

Permalink
Fix ownership issue in dockers (#3726)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
csujedihy committed Jun 25, 2023
1 parent c632272 commit b3141c5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 '*'

Original file line number Diff line number Diff line change
Expand Up @@ -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 '*'
12 changes: 6 additions & 6 deletions .github/workflows/docker-publish-xcomp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 }}

0 comments on commit b3141c5

Please sign in to comment.