Files
FWS-ISO/.gitea/workflows/_probe-runner.yml
T

31 lines
844 B
YAML

name: Probe runner
on:
workflow_dispatch:
jobs:
probe:
runs-on: arch-host
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Probe
run: |
set -e
echo "PWD=$PWD"
ls | head
sudo pacman -Sy --needed --noconfirm --quiet docker
docker run --rm --privileged -v "$PWD:$PWD" -w "$PWD" archlinux:latest sh -c '
ls | head
test -f release.sh && echo REPO_VISIBLE
'
echo marker > from-job.txt
docker run --rm --privileged -v "$PWD:$PWD" -w "$PWD" archlinux:latest sh -c '
cat from-job.txt && echo READ_BACK_OK
echo from-container > from-container.txt
'
echo "--- back in job"
cat from-container.txt
rm -f from-job.txt from-container.txt