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 - name: Copy using key
id: key-job id: key-job
uses: srueda99/scp-action@v5 uses: srueda99/scp-action@v6
with: with:
port: 22 port: 22
host: ${{ secrets.SERVER_ADDRESS }} host: ${{ secrets.SERVER_ADDRESS }}

View File

@ -4,5 +4,7 @@ FROM alpine
COPY . / COPY . /
# Grant executable permission on the script. # Grant executable permission on the script.
RUN ["chmod", "+x", "/entrypoint.sh"] RUN ["chmod", "+x", "/entrypoint.sh"]
RUN ["apk", "update"]
RUN ["apk", "add", "git", "openssh"]
# Runs the script. # Runs the script.
ENTRYPOINT [ "/entrypoint.sh" ] ENTRYPOINT [ "/entrypoint.sh" ]

View File

@ -25,7 +25,7 @@ Use Github secrets to give these parameters.
**With password** **With password**
``` ```
name: copy using password name: copy using password
uses: srueda99/scp-action@v5 uses: srueda99/scp-action@v6
with: with:
port: 22 port: 22
host: ${{ secrets.SERVER_ADDRESS }} host: ${{ secrets.SERVER_ADDRESS }}
@ -37,7 +37,7 @@ with:
**With key** **With key**
``` ```
name: copy using key name: copy using key
uses: srueda99/scp-action@v5 uses: srueda99/scp-action@v6
with: with:
port: 22 port: 22
host: ${{ secrets.SERVER_ADDRESS }} host: ${{ secrets.SERVER_ADDRESS }}
@ -49,7 +49,7 @@ with:
**With origin folder** **With origin folder**
``` ```
name: copy using password name: copy using password
uses: srueda99/scp-action@v5 uses: srueda99/scp-action@v6
with: with:
port: 22 port: 22
host: ${{ secrets.SERVER_ADDRESS }} host: ${{ secrets.SERVER_ADDRESS }}
@ -62,7 +62,7 @@ with:
**With passphrase** **With passphrase**
``` ```
name: copy using key name: copy using key
uses: srueda99/scp-action@v5 uses: srueda99/scp-action@v6
with: with:
port: 22 port: 22
host: ${{ secrets.SERVER_ADDRESS }} host: ${{ secrets.SERVER_ADDRESS }}