From fcee6cde5c4ff981e824586a087e81f73004a397 Mon Sep 17 00:00:00 2001 From: Muhammet Ali Topcu <42305974+alitpc25@users.noreply.github.com> Date: Mon, 27 Nov 2023 00:21:54 +0300 Subject: [PATCH] Update deploy.yml another method --- .github/workflows/deploy.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 644aab92..7f4a4390 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,11 +11,18 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 - with: - repository: alitpc25/cmpe451group1configrepo - path: 'resq/backend/resq/project_env_prod' - token: '${{ secrets.PRIVATE_CONFIG_REPO_TOKEN || github.token }}' - ref: 'main' + + - name: Configure SSH + run: | + mkdir -p ~/.ssh + echo {{ secrets.PRIVATE_REPO_SSH_KEY }} > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts + + - name: Clone Private Repository + run: | + git clone git@github.com:alitpc25/cmpe451group1configrepo.git + cp -r private-repo/project_env_prod ./resq/backend/resq/project_env_prod # - name: Decrypt and Extract project_env_prod # env: