From 193fd4eaa99f6694c2fba7331741b9f1a8a11f7c Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 20 Jan 2020 22:51:17 +0800 Subject: [PATCH] chore: add passphrase testing --- .github/workflows/ci.yml | 11 +++++++++++ Dockerfile | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d5fcd0..0ef4c23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,3 +37,14 @@ jobs: source: "tests/a.txt,tests/b.txt" target: "foobar" strip_components: 1 + + - name: ssh key with passphrase + uses: appleboy/scp-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.SSH2 }} + passphrase: ${{ secrets.PASSPHRASE }} + port: ${{ secrets.PORT }} + source: "tests/a.txt,tests/b.txt" + target: "test" diff --git a/Dockerfile b/Dockerfile index 0a9e088..33b2b36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM appleboy/drone-scp:1.5.4-linux-amd64 +FROM appleboy/drone-scp:1.5.5-linux-amd64 ADD entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh