Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
gpg already installed
  • Loading branch information
alitpc25 authored Nov 26, 2023
1 parent c12c71f commit a01ac1f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@ jobs:
- name: Checkout Repository
uses: actions/[email protected]

- name: Install GPG
run: sudo apt-get update && sudo apt-get install -y gnupg

- name: Debug GPG Key
run: |
cd ./resq/backend/resq/
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Decrypt and Extract project_env_prod
env:
RESQ_PASSPHRASE: ${{ secrets.RESQ_PASSPHRASE }}
run: |
cd ./resq/backend/resq/
gpg --quiet --batch --yes --decrypt --passphrase="$RESQ_PASSPHRASE" --output project_env_prod.tar.gz project_env_prod.tar.gz.gpg
tar xzvf project_env_prod.tar.gz
Expand Down

0 comments on commit a01ac1f

Please sign in to comment.