We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d2769 commit c70035dCopy full SHA for c70035d
1 file changed
.github/workflows/main.yml
@@ -241,7 +241,11 @@ jobs:
241
working-directory: ${{ env.docker-config-path }}
242
if: matrix.platform.container.name != ''
243
- name: Create container
244
- run: docker build -t ${{ env.docker-registry-container-sha }} -f ${{ env.dockerfile }} .
+ run: |
245
+ if [ "${{ matrix.container.base }}" != "" ]; then
246
+ BASE_ARG="--build-arg BASE=${{ matrix.container.base }}"
247
+ fi
248
+ docker build -t ${{ env.docker-registry-container-sha }} --build-arg UID=$(id -u) --build-arg GID=$(id -g) ${BASE_ARG} -f ${{ env.dockerfile }} .
249
250
if: matrix.platform.container.name != '' && env.docker-container-exists != 'true'
251
- name: Build and test
0 commit comments