Skip to content

Commit

Permalink
Try bash -c instead
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelOnFira committed Oct 31, 2023
1 parent 6a79784 commit c22e472
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
- name: Build Docker image
uses: docker/build-push-action@v5
with:
tags: milk-v-duo-docker-compile:latest
tags: ghcr.io/aidancrowther/milk-v-duo-docker-compile:latest
context: .
push: false

- name: Run Commands from Outside the Container example
run: docker run -t \
-v $(pwd):/home/milkv/buildroot \
milk-v-duo-docker-compile:latest \
"cd examples/hello-world && make"
ghcr.io/aidancrowther/milk-v-duo-docker-compile:latest \
bash -c "cd examples/hello-world && make"

- name: Test sudo
run: docker run -t \
-v $(pwd):/home/milkv/buildroot \
milk-v-duo-docker-compile:latest \
"echo milk | sudo -S apt-get update"
ghcr.io/aidancrowther/milk-v-duo-docker-compile:latest \
bash -c "echo milk | sudo -S apt-get update"

0 comments on commit c22e472

Please sign in to comment.