Skip to content

Commit

Permalink
change region for ec2 07
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaDudnyk committed Mar 2, 2024
1 parent cf2a597 commit 0a414b6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/backEnd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ jobs:
with:
node-version: 16

- name: Configure AWS credentials// AWS credentials are configuring
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Install dependencies and build
run: |
ssh -o StrictHostKeyChecking=no -i ${{secrets.AWS_PEM}} "${{secrets.AWS_HOST_NAME}}@${{secrets.AWS_HOST}}"
echo ${{secrets.AWS_PEM}} > private_key && chmod 600 private_key
ssh -o StrictHostKeyChecking=no -i private_key "${{secrets.AWS_HOST_NAME}}@${{secrets.AWS_HOST}}"
cd Full-Stack-Project-Assessment
git pull
cd server
Expand Down

0 comments on commit 0a414b6

Please sign in to comment.