Skip to content

Commit

Permalink
fix(ci): correct typos
Browse files Browse the repository at this point in the history
  • Loading branch information
astorverse committed Jul 17, 2024
1 parent 6407acc commit 34c2e6a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy-to-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
ECR_URL: ${{ secrets.AWS_PRODUCTION_ECR_URL }}
HOSTS: ${{ secrets.AWS_PRODUCTUON_HOSTS }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY: $$ { secrets:AWS_PRODUCTION_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: $${ secrets.AWS_PRODUCTION_SECRET_ACCESS_KEY }}
AWS_ACCESS_KEY: ${ secrets.AWS_PRODUCTION_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${ secrets.AWS_PRODUCTION_SECRET_ACCESS_KEY }}
AWS_PROFILE: production
ACCOUNT: 'ubuntu'
DOCKER_TAG: 'latest'
Expand All @@ -41,6 +41,12 @@ jobs:
- name: Build project
run: npm run build

- name: Create PEM file
run: echo "${{ secrets.BLCCU_PRODUCTION_RSA_PEM }}" > deploy_key.pem

- name: Set PEM file permissions
run: chmod 400 deploy_key.pem

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
Expand All @@ -58,12 +64,6 @@ jobs:
docker tag $SERVICE_NAME:$DOCKER_TAG $ECR_URL/$SERVICE_NAME:$DOCKER_TAG
docker push $ECR_URL/$SERVICE_NAME:$DOCKER_TAG
- name: Create PEM file
run: echo "${{ secrets.BLCCU_PRODUCTION_RSA_PEM }}" > deploy_key.pem

- name: Set PEM file permissions
run: chmod 400 deploy_key.pem

- name: Deploy to servers
run: |
IFS=',' read -r -a HOST_ARRAY <<< "$HOSTS"
Expand Down

0 comments on commit 34c2e6a

Please sign in to comment.