diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index b85969c..45d3a01 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -78,10 +78,10 @@ jobs: run: | echo "${{ secrets.SSH_DEPLOY_KEY }}" > ./l2-indexer.pem &&\ chmod 600 ./l2-indexer.pem &&\ - ssh -o StrictHostKeyChecking=no -i ./l2-indexer.pem root@${{ secrets.SSH_HOST }} "\ - echo -e '## Git sha: ${{ github.sha }}\nDate UNIX: $(date +%s)\n' >> version.md &&\ - echo '${{ secrets.ENV_CONFIG }}' > /root/l2-indexer/.env &&\ - cd /root/l2-indexer &&\ - source ~/.cargo/env &&\ - cargo make restart" + ssh -o StrictHostKeyChecking=no -i ./l2-indexer.pem root@${{ secrets.SSH_HOST }} "\ + bash -i -c '\ + echo -e \"## Git sha: ${{ github.sha }}\nDate UNIX: \$(date +%s)\n\" >> version.md &&\ + echo ${{ secrets.ENV_CONFIG }} > /root/l2-indexer/.env &&\ + cd /root/l2-indexer &&\ + cargo make restart'" shell: bash