docker-run-挂载目录.yaml

This commit is contained in:
严浩
2025-04-11 09:59:33 +08:00
parent 20c6bb13cd
commit 06f32d799a

View File

@@ -0,0 +1,18 @@
on:
push:
jobs:
test:
runs-on: ubuntu-arm64
steps:
- uses: actions/checkout@main
- run: ls -al
- name: Run Docker container
run: |
docker run --rm \
--volume type=bind,source=${{ github.workspace }},target=/workspace \
--workdir /workspace \
alpine:latest \
sh -c "echo 'Hello from Docker!' && ls -al"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}