Skip to content

Commit

Permalink
Merge pull request #379 from projectsyn/test/check-container-user
Browse files Browse the repository at this point in the history
Add CI step to check container user and home directory
  • Loading branch information
simu authored Jan 20, 2025
2 parents 5776ba0 + 9a934fd commit 589e069
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,9 @@ jobs:
if: contains(steps.changed-files.outputs.modified_files, 'Dockerfile')
run: |
docker run --rm ghcr.io/${{ env.IMAGE }}:test jb --version
- name: Check container user and home directory
if: contains(steps.changed-files.outputs.modified_files, 'Dockerfile')
run: |
docker run --rm ghcr.io/${{ env.IMAGE }}:test whoami
docker run --rm ghcr.io/${{ env.IMAGE }}:test sh -c 'echo $HOME'
docker run --rm ghcr.io/${{ env.IMAGE }}:test sh -c 'ls $HOME'

0 comments on commit 589e069

Please sign in to comment.