Skip to content

Commit

Permalink
Add test for WORKDIR change
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Schwengle <waterkip@cpan.org>
  • Loading branch information
waterkip authored and zakame committed Aug 3, 2023
1 parent ae37371 commit e609668
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,13 @@ jobs:
dir='${{ matrix.directory }}'
img="perl:${dir//,/-}"
docker run "$img" cpm install -v Mojolicious
- name: COPY all to default WORKDIR
run: |
dir='${{ matrix.directory }}'
img="perl:${dir//,/-}"
mkdir -p test/lib
cat <<EOF >Dockerfile
FROM $img
COPY . .
EOF
docker build -f Dockerfile test

0 comments on commit e609668

Please sign in to comment.