workflows: specify options

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

View File

@ -12,8 +12,19 @@ jobs:
run: |
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 -v $PWD:/wd -w /wd -e INPUT_PLAYBOOK=playbook.yml -e INPUT_KEY="${{secrets.SSH_PRIVATE_KEY}}" action
docker run -d \
--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
uses: ./
with: