1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2024-11-22 07:26:25 +00:00

workflows: mount cwd in container

This commit is contained in:
Dawid Dziurla 2020-03-22 12:24:42 +01:00
parent be21279173
commit e57bb6ed8a
No known key found for this signature in database
GPG key ID: 7B6D8368172E9B0B

View file

@ -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: