Skip to content

Commit

Permalink
fix(cd): delete dependency and create pem file directly
Browse files Browse the repository at this point in the history
  • Loading branch information
astorverse committed Jul 23, 2024
1 parent c45b025 commit b0bef2f
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/deploy-to-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ jobs:
- name: Set PEM file permissions
run: chmod 400 deploy_key.pem

- name: Save artifact
uses: actions/upload-artifact@v2
with:
name: deploy-key
path: deploy_key.pem

- name: Install AWS CLI
uses: unfor19/install-aws-cli-action@v1
with:
Expand Down Expand Up @@ -94,11 +88,8 @@ jobs:
NGINX_CONFIG: '/etc/nginx/nginx.conf'

steps:
- name: Restore PEM file
uses: actions/download-artifact@v2
with:
name: deploy-key
path: deploy_key.pem
- 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
Expand Down

0 comments on commit b0bef2f

Please sign in to comment.