diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index a41f72c..281b36e 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -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