Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Add quotes to github env setting, r4
Browse files Browse the repository at this point in the history
  • Loading branch information
leshikus committed Oct 13, 2023
1 parent cd3bc16 commit dc11dd6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ jobs:
with:
name: ${{ runner.os }}-asan-cache

- name: Unpack build files, create Dockerfile
- name: Unpack build files, create Dockerfile, build and start the container
run: |
tar -zxf build.tgz
set -vx
cat docker/Dockerfile docker/Dockerfile.${{ inputs.name }} >Dockerfile
devices=$(find /dev -type c -name 'nvidia*' | awk '{ print " --device "$1":"$1 }')
Expand All @@ -59,11 +60,7 @@ jobs:
devices="$devices --device /dev/dri:/dev/dri"
getent group render | awk -F : '{ print "RUN groupadd -g "$3" render && usermod -a -G render ghrunner" }' >>Dockerfile
}
echo devices=\"$devices\" >>$GITHUB_ENV
- name: Build and start the container
run: |
set -vx
docker build . \
--build-arg http_proxy \
--build-arg https_proxy \
Expand All @@ -73,7 +70,7 @@ jobs:
--env http_proxy \
--env https_proxy \
--env no_proxy \
-id --name hdk-build.${{ inputs.name }} --network host ${{ env.devices }} hdk-build.${{ inputs.name }}:latest
-id --name hdk-build.${{ inputs.name }} --network host $devices hdk-build.${{ inputs.name }}:latest
- name: Copy files into the container
run: |
Expand Down

0 comments on commit dc11dd6

Please sign in to comment.