Update push.yml
This commit is contained in:
parent
3de3d9ff74
commit
54edf6c49f
1 changed files with 15 additions and 9 deletions
24
.github/workflows/push.yml
vendored
24
.github/workflows/push.yml
vendored
|
|
@ -1,20 +1,26 @@
|
|||
name: Push over SCP
|
||||
|
||||
on:
|
||||
schedule:
|
||||
schedule:
|
||||
- cron: "0 */3 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Getting Ready...
|
||||
run: |
|
||||
echo Getting Ready...
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Getting Ready...
|
||||
run: |
|
||||
echo "Getting Ready..."
|
||||
mkdir -p ~/.ssh/
|
||||
echo "HOST *" > ~/.ssh/config
|
||||
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
||||
- name: Pushing Files...
|
||||
run: |
|
||||
echo Pushing Files...
|
||||
sshpass -p '${{ secrets.PASS }}' scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -r -P 22 -J mattthetekie@${{ secrets.IP }} /home/runner/work/VENITH.NET/VENITH.NET mattthetekie@${{ secrets.DEST_IP }}:/var/www/venith
|
||||
|
||||
- name: Pushing Files...
|
||||
run: |
|
||||
echo "Pushing Files..."
|
||||
sshpass -p '${{ secrets.PASS }}' scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -r -P 22 -J mattthetekie@${{ secrets.IP }} /home/runner/work/VENITH.NET/VENITH.NET mattthetekie@${{ secrets.DEST_IP }}:/var/www/venith
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue