docker-run-挂载目录.yaml
All checks were successful
/ test (push) Successful in 17s
/ job1-harbor-bot (push) Successful in 21s
/ job2-harbor_username (push) Successful in 6s
/ check-out-another-repo (push) Successful in 7s
/ hashFiles (push) Successful in 3s
/ go-hashfiles (push) Successful in 1m4s
/ job1 (push) Successful in 3s
/ job3 (push) Has been skipped
/ job2 (push) Successful in 3s

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 }}