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
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:
18
.github/workflows/docker-run-挂载目录.yaml
vendored
Normal file
18
.github/workflows/docker-run-挂载目录.yaml
vendored
Normal 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 }}
|
Reference in New Issue
Block a user