diff --git a/.github/workflows/erlang-parallel-build.yml b/.github/workflows/erlang-parallel-build.yml index b65d8d9..335b247 100644 --- a/.github/workflows/erlang-parallel-build.yml +++ b/.github/workflows/erlang-parallel-build.yml @@ -245,6 +245,13 @@ jobs: if: ${{ inputs.run-ct-with-compose == false }} run: rebar3 ct --cover ${{ inputs.ct-command-args }} + - name: Set USER_UID and USER_GID env + id: ct-env-w-compose + if: ${{ inputs.run-ct-with-compose == true }} + run: | + echo "RUNNER_UID=$(id -u)" >> $GITHUB_ENV + echo "RUNNER_GID=$(id -g)" >> $GITHUB_ENV + - name: Run CommonTest (/w docker-compose) id: run-ct-w-compose if: ${{ inputs.run-ct-with-compose == true }} @@ -253,6 +260,8 @@ jobs: DEV_IMAGE_TAG: ${{ inputs.run-ct-compose-container-name }}-dev OTP_VERSION: ${{ inputs.otp-version }} THRIFT_VERSION: ${{ inputs.thrift-version }} + USER_UID: ${{ env.RUNNER_UID }} + USER_GID: ${{ env.RUNNER_GID }} # Enable buildkit extensions in docker compose COMPOSE_DOCKER_CLI_BUILD: true DOCKER_BUILDKIT: true