mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-12-27 10:36:09 -07:00
workflows: mount cwd in container
This commit is contained in:
parent
be21279173
commit
e57bb6ed8a
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
|||
docker build -t host -f Dockerfile.test .
|
||||
docker build -t action -f Dockerfile .
|
||||
docker run -d --name host -e SSH_PUBLIC_KEY="${{secrets.SSH_PUBLIC_KEY}}" host
|
||||
docker run -t --name action --link host -e INPUT_PLAYBOOK=playbook.yml -e INPUT_KEY="${{secrets.SSH_PRIVATE_KEY}}" action
|
||||
docker run -t --name action --link host -v $PWD:/wd -w /wd -e INPUT_PLAYBOOK=playbook.yml -e INPUT_KEY="${{secrets.SSH_PRIVATE_KEY}}" action
|
||||
- name: Test local
|
||||
uses: ./
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue
Block a user