Archived
updated ci/cd pipeline
This commit is contained in:
@@ -9,6 +9,11 @@ jobs:
|
||||
deploy:
|
||||
runs-on: linux
|
||||
steps:
|
||||
- name: Test Step
|
||||
- name: Setup SSH Key
|
||||
run: |
|
||||
echo "Hello World from Gitea Actions!"
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keyscan -H "${{ secrets.SSH_HOST }}" >> ~/.ssh/known_hosts
|
||||
- name: Deploy via SSH
|
||||
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "bash ~/deploy.sh ${{ secrets.PROJECT_DEPLOYMENT_PATH }}"
|
||||
|
||||
Reference in New Issue
Block a user