From a8768e175173a0e24760764ad90b8fcafb2bbd5b Mon Sep 17 00:00:00 2001 From: srueda99 Date: Mon, 18 Apr 2022 14:38:40 -0500 Subject: [PATCH] Download openssh --- .github/workflows/cicd.yml | 2 +- Dockerfile | 2 ++ README.md | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 4506946..c6883f3 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -10,7 +10,7 @@ jobs: - name: Copy using key id: key-job - uses: srueda99/scp-action@v5 + uses: srueda99/scp-action@v6 with: port: 22 host: ${{ secrets.SERVER_ADDRESS }} diff --git a/Dockerfile b/Dockerfile index 88db657..d560b0e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,5 +4,7 @@ FROM alpine COPY . / # Grant executable permission on the script. RUN ["chmod", "+x", "/entrypoint.sh"] +RUN ["apk", "update"] +RUN ["apk", "add", "git", "openssh"] # Runs the script. ENTRYPOINT [ "/entrypoint.sh" ] \ No newline at end of file diff --git a/README.md b/README.md index 3e39b60..fd9f17f 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Use Github secrets to give these parameters. **With password** ``` name: copy using password -uses: srueda99/scp-action@v5 +uses: srueda99/scp-action@v6 with: port: 22 host: ${{ secrets.SERVER_ADDRESS }} @@ -37,7 +37,7 @@ with: **With key** ``` name: copy using key -uses: srueda99/scp-action@v5 +uses: srueda99/scp-action@v6 with: port: 22 host: ${{ secrets.SERVER_ADDRESS }} @@ -49,7 +49,7 @@ with: **With origin folder** ``` name: copy using password -uses: srueda99/scp-action@v5 +uses: srueda99/scp-action@v6 with: port: 22 host: ${{ secrets.SERVER_ADDRESS }} @@ -62,7 +62,7 @@ with: **With passphrase** ``` name: copy using key -uses: srueda99/scp-action@v5 +uses: srueda99/scp-action@v6 with: port: 22 host: ${{ secrets.SERVER_ADDRESS }}