Skip to content

Commit

Permalink
Use base64 secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Xamber committed Nov 27, 2020
1 parent e8c0781 commit 4bc7a06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ jobs:
USERNAME: ${{ secrets.USERNAME }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.SSH_KEY }}
CERTIFICATE_CERT: ${{ secrets.CERTIFICATE_CERT }}
CERTIFICATE_KEY: ${{ secrets.CERTIFICATE_KEY }}
with:
script: |
mkdir ~/ssl/
touch ~/ssl/saturn.cert
touch ~/ssl/saturn.key
echo ${{ secrets.CERTIFICATE_CERT }} > ~/ssl/saturn.cert
echo ${{ secrets.CERTIFICATE_KEY }} > ~/ssl/saturn.key
echo "$CERTIFICATE_CERT" | base64 --decode > ~/ssl/saturn.cert
echo "$CERTIFICATE_KEY" | base64 --decode > ~/ssl/saturn.key
- name: Restart containers
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 4bc7a06

Please sign in to comment.