Skip to content

Commit

Permalink
Add CI step to check container user and home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Jan 20, 2025
1 parent 5776ba0 commit 9a934fd
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 9a934fd

Please sign in to comment.