Commit c70035dc by Edward Thomson

actions: pass UID and GID to PR builds of dockerfiles

parent a2d2769b
...@@ -241,7 +241,11 @@ jobs: ...@@ -241,7 +241,11 @@ jobs:
working-directory: ${{ env.docker-config-path }} working-directory: ${{ env.docker-config-path }}
if: matrix.platform.container.name != '' if: matrix.platform.container.name != ''
- name: Create container - name: Create container
run: docker build -t ${{ env.docker-registry-container-sha }} -f ${{ env.dockerfile }} . run: |
if [ "${{ matrix.container.base }}" != "" ]; then
BASE_ARG="--build-arg BASE=${{ matrix.container.base }}"
fi
docker build -t ${{ env.docker-registry-container-sha }} --build-arg UID=$(id -u) --build-arg GID=$(id -g) ${BASE_ARG} -f ${{ env.dockerfile }} .
working-directory: ${{ env.docker-config-path }} working-directory: ${{ env.docker-config-path }}
if: matrix.platform.container.name != '' && env.docker-container-exists != 'true' if: matrix.platform.container.name != '' && env.docker-container-exists != 'true'
- name: Build and test - name: Build and test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment