Download openssh

This commit is contained in:
srueda99 2022-04-18 14:38:40 -05:00
parent c659fcf990
commit a8768e1751
3 changed files with 7 additions and 5 deletions

View File

@ -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 }}

View File

@ -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" ]

View File

@ -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 }}