From 9c9dd4d796878e6f404b879090270c56aca005b7 Mon Sep 17 00:00:00 2001 From: kristina_dudnyk Date: Sat, 2 Mar 2024 12:01:58 +0000 Subject: [PATCH] change region for ec2 03 --- .github/workflows/backEnd.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backEnd.yml b/.github/workflows/backEnd.yml index ec7aab72ac..f2bf800a70 100644 --- a/.github/workflows/backEnd.yml +++ b/.github/workflows/backEnd.yml @@ -13,6 +13,11 @@ jobs: - name: Checkout repository//download the source code repository uses: actions/checkout@v2 + - name: Use Node.js 16 + uses: actions/setup-node@v4 + with: + node-version: 16 + - name: Configure AWS credentials// AWS credentials are configuring uses: aws-actions/configure-aws-credentials@v2 with: @@ -22,7 +27,7 @@ jobs: - name: Install dependencies and build run: | - ssh -i ec2-key-pair-videos.pem -o StrictHostKeyChecking=no "${{secrets.EC2_HOST}}" + ssh -o StrictHostKeyChecking=no -i "${{secrets.AWS_HOST_NAME}}@${{secrets.AWS_HOST}}" cd Full-Stack-Project-Assessment git pull cd server