mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-22 15:32:18 +00:00
workflows: specify options
This commit is contained in:
parent
e57bb6ed8a
commit
bcf6f7f653
1 changed files with 13 additions and 2 deletions
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
|
@ -12,8 +12,19 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
docker build -t host -f Dockerfile.test .
|
docker build -t host -f Dockerfile.test .
|
||||||
docker build -t action -f Dockerfile .
|
docker build -t action -f Dockerfile .
|
||||||
docker run -d --name host -e SSH_PUBLIC_KEY="${{secrets.SSH_PUBLIC_KEY}}" host
|
docker run -d \
|
||||||
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 host \
|
||||||
|
-e SSH_PUBLIC_KEY="${{secrets.SSH_PUBLIC_KEY}}" \
|
||||||
|
host
|
||||||
|
docker run -t \
|
||||||
|
--name action \
|
||||||
|
--link host \
|
||||||
|
-v $PWD:/wd \
|
||||||
|
-w /wd \
|
||||||
|
-e INPUT_PLAYBOOK=playbook.yml \
|
||||||
|
-e INPUT_KEY="${{secrets.SSH_PRIVATE_KEY}}" \
|
||||||
|
-e INPUT_OPTIONS="-e host=host -e user=user" \
|
||||||
|
action
|
||||||
- name: Test local
|
- name: Test local
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue