From 6da627d9514a2241891edacad4e7eecd0fba3ed3 Mon Sep 17 00:00:00 2001 From: Refringe Date: Mon, 8 Apr 2024 13:56:07 -0400 Subject: [PATCH] Pipeline: Adds push to production step --- .gitea/workflows/deploy.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 95773cc..6349c2d 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -2,7 +2,7 @@ name: Deploy on: push: - branches: [ main, rewrite ] + branches: [ main ] jobs: deploy: @@ -13,8 +13,18 @@ jobs: with: path: /workspace/SPT-AKI/DB-Website - - name: List Files + - name: List files run: ls -lah shell: bash with: path: /workspace/SPT-AKI/DB-Website + + - name: Set up SSH key + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + + - name: Push to production + run: | + git remote add deploy ssh://dbwebsite@51.195.101.201/home/dbwebsite/DB-Website.git + git push deploy main:main