docker-run-挂载目录.yaml
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