From bcf6f7f653de1f17ecc8aba2c2b7749bad305c36 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Sun, 22 Mar 2020 12:27:35 +0100 Subject: [PATCH] workflows: specify options --- .github/workflows/test.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1011181..6ffc578 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: