deploy workflow test1
deploy workflow / Explore-Gitea-Actions (push) Failing after 2s
deploy workflow / Explore-Gitea-Actions (push) Failing after 2s
This commit is contained in:
1 parent
056934e866
commit
789375cb33
1 file changed
+18
-9
@@ -1,16 +1,25 @@
|
|||||||
name: deploy workflow
|
name: deploy workflow
|
||||||
run-name: deploy workflow
|
run-name: deploy workflow
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
steps:
|
steps:
|
||||||
- run: echo hello workflows
|
- uses: gitea/actions/checkout@v4
|
||||||
#- uses: gitea/actions/checkout@v4
|
- name: Install rsync and ssh
|
||||||
#- name: Install rsync and ssh
|
run: sudo apt update && sudo apt install -y rsync openssh-client
|
||||||
#run: sudo apt update && sudo apt install -y rsync openssh-client
|
- name: Configure ssh key
|
||||||
#- name: Add ssh key
|
env:
|
||||||
#run: echo "" > ~/.ssh/
|
SSH_KEY: ${{ RUNNER_PRIVATE_KEY }}
|
||||||
#- name: Push data to website server
|
run: |
|
||||||
#run: rsync --delete ./ nginx@cancerai.top:www/owner/
|
mkdir -p ~/.ssh
|
||||||
|
echo ${ SSH_KEY } > ~/.ssh/private_key
|
||||||
|
chmod 600 ~/.ssh/private_key
|
||||||
|
ssh-keyscan -p 2001 cancerai.top >> ~/.ssh/known_hosts
|
||||||
|
- name: Push data to website server
|
||||||
|
run: rsync --delete -e "ssh -p 2001" ./ nginx@cancerai.top:www/owner/
|
||||||
|
- name: Clean key
|
||||||
|
run: rm -rf ~/.ssh
|
||||||
Reference in new issue
Block a user