Skip to content

Instantly share code, notes, and snippets.

@andreasneuber
Last active November 10, 2024 16:00
Show Gist options
  • Save andreasneuber/2d429916419d17858bf7d9631807ca8c to your computer and use it in GitHub Desktop.
Save andreasneuber/2d429916419d17858bf7d9631807ca8c to your computer and use it in GitHub Desktop.
Copy test report "out" of a docker container to host
# Powershell
docker cp "$(docker ps -qf 'name=<name of container>'):/app/test-reports/report-1.html" "./report-1.html"
# Gitlab Pipeline Job
copy_artifact:
stage: artifacts
script:
- docker cp $(docker ps -qf "name=<name of container>"):/app/test-reports/report-1.html ./report-1.html
artifacts:
paths:
- report-1.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment