From 34b21fa7aece5ee93b9ec1d31726a0c28013ab44 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 6 Nov 2023 16:05:04 +0100 Subject: [PATCH] Completed prod deploy also --- .gitea/workflows/prod-deploy.yaml | 54 ++++++++++++++++-------------- .gitea/workflows/stage-deploy.yaml | 37 ++------------------ 2 files changed, 31 insertions(+), 60 deletions(-) diff --git a/.gitea/workflows/prod-deploy.yaml b/.gitea/workflows/prod-deploy.yaml index fb59bb9a5..b0ed6a343 100644 --- a/.gitea/workflows/prod-deploy.yaml +++ b/.gitea/workflows/prod-deploy.yaml @@ -8,8 +8,6 @@ jobs: Build-and-deploy-Production: runs-on: ubuntu-latest steps: - - run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - name: Check out repository code uses: actions/checkout@v3 - run: echo " The ${{ gitea.repository }} repository has been cloned to the runner." @@ -21,27 +19,31 @@ jobs: - run: | npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 install npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build - - name: Configure SSH - run: | - mkdir -p ~/.ssh/ - echo "$SSH_KEY" > ~/.ssh/production.key - chmod 600 ~/.ssh/production.key - cat >>~/.ssh/config < /root/.ssh/id_rsa -# chmod 700 /root/.ssh/id_rsa -# -# cat >> /root/.ssh/config <