fdghfdgh
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-rootfs-archives (push) Failing after 5s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been skipped
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-rootfs-archives (push) Failing after 5s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been skipped
This commit is contained in:
@@ -35,20 +35,32 @@ jobs:
|
||||
echo "Working dir: $(pwd)"
|
||||
ls -lah .
|
||||
|
||||
- name: Ensure output directory exists
|
||||
run: mkdir -p ./output
|
||||
- name: Create Docker volume
|
||||
run: docker volume create build_output
|
||||
|
||||
- name: Write to output via docker
|
||||
##############################################################################
|
||||
|
||||
- name: Write file using Docker volume
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v "$(pwd)/output:/output" \
|
||||
-v build_output:/output \
|
||||
debian \
|
||||
bash -c "echo test > /output/hello.txt"
|
||||
bash -c "echo hello-world > /output/hello.txt"
|
||||
|
||||
- name: Try to read from output on host
|
||||
- name: Extract file from volume
|
||||
run: |
|
||||
echo "Expecting /mnt/unraid_output/act_runner_output/hello.txt..."
|
||||
ls -lh "${{ env.OUTPUT_DIR }}"
|
||||
docker run --rm \
|
||||
-v build_output:/output \
|
||||
-v "$(pwd):/workspace" \
|
||||
debian \
|
||||
bash -c "cp /output/hello.txt /workspace/output.txt"
|
||||
|
||||
- name: Read output.txt
|
||||
run: |
|
||||
ls -lh
|
||||
cat output.txt
|
||||
|
||||
##############################################################################
|
||||
|
||||
- name: Debug mount inside container
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user