From ae5e40e07f345e690c85dc91a56957e58e2a3a7a Mon Sep 17 00:00:00 2001 From: fithwum Date: Tue, 8 Jul 2025 21:06:55 -0700 Subject: [PATCH] fdghfdgh --- .gitea/workflows/base-build.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/base-build.yml b/.gitea/workflows/base-build.yml index 90c10d9..c80dc25 100644 --- a/.gitea/workflows/base-build.yml +++ b/.gitea/workflows/base-build.yml @@ -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: |