Skip to content

Commit

Permalink
Set working directory in Docker-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Jun 28, 2023
1 parent 936c7ae commit bca5199
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,17 @@ jobs:
run: |
dockerContainerPort=$(docker image inspect docker-ci:latest -f "{{json .Config.ExposedPorts }}" | tr -d '{}":/tcp')
dockerCmd=$(docker image inspect docker-ci:latest -f "{{json .Config.Cmd }}" | tr -d '][' | tr "," " ")
dockerWorkingDir=$(docker image inspect docker-ci:latest -f "{{json .Config.WorkingDir }}" | tr -d '"')
echo "dockerContainerPort=$dockerContainerPort" >> $GITHUB_ENV
echo "dockerCmd=$dockerCmd" >> $GITHUB_ENV
echo "dockerWorkingDir=$dockerWorkingDir" >> $GITHUB_ENV
- name: Run tests in Docker Container
uses: addnab/docker-run-action@v3
with:
image: docker-ci:latest
options: -v ${{ github.workspace }}:/app
options: -v ${{ github.workspace }}:${{ env.dockerWorkingDir }}
run: |
${{ env.dockerCmd }} &
sleep 15
Expand Down

0 comments on commit bca5199

Please sign in to comment.