tj-actions / docker-cp Goto Github PK
View Code? Open in Web Editor NEW:octocat: Github action to run docker copy
License: MIT License
:octocat: Github action to run docker copy
License: MIT License
Hi there,
With the following action, I'm unclear as to why I'm getting the error "Error response from daemon: Could not find the file /home/pptruser/test.pdf in container "
run_tests:
needs: deploy-to-test-host
runs-on: ubuntu-latest # You can choose the appropriate runner
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: puppeteer-test
uses: tj-actions/[email protected]
id: puppeteer-test
with:
files: |
test/*.js
- name: Copy test output
uses: tj-actions/docker-cp@v2
with:
container: ${{ steps.puppeteer-test.outputs.container-id }}
source: ${{ steps.puppeteer-test.outputs.home }}/test.pdf
destination: test.pdf
- name: Display contents of test.pdf
run: cat test.pdf
Output:
Running test/*.js...
Completed executing test/*.js
0s
Run tj-actions/docker-cp@v2
with:
container: be7bd3e17c75
source: /home/pptruser/test.pdf
destination: test.pdf
local: true
Run # Run docker cp
# Run docker cp
EXTRA_ARGS=
if [ "true" != "true" ]; then
docker cp $EXTRA_ARGS /home/pptruser/test.pdf be7bd3e17c75:test.pdf
else
docker cp $EXTRA_ARGS be7bd3e17c75:/home/pptruser/test.pdf test.pdf
fi
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Error response from daemon: Could not find the file /home/pptruser/test.pdf in container be7bd3e17c75
Error: Process completed with exit code 1.
It's unclear from the documentation how to remedy?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
Dockerfile
alpine 3.20.1
.github/workflows/rebase.yml
actions/checkout v4
cirrus-actions/rebase 1.8
.github/workflows/sync-release-version.yml
actions/checkout v4
tj-actions/release-tagger v4
tj-actions/sync-release-version v13
tj-actions/git-cliff v1
peter-evans/create-pull-request v6
.github/workflows/test.yml
actions/checkout v4
reviewdog/action-shellcheck v1
docker/setup-qemu-action v3.2.0
docker/setup-buildx-action v3.5.0
docker/build-push-action v6
tj-actions/docker-run v2
.github/workflows/update-readme.yml
actions/checkout v4
tj-actions/auto-doc v3
tj-actions/remark v3
tj-actions/verify-changed-files v20
peter-evans/create-pull-request v6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.