Skip to content

Commit

Permalink
bash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
beeinger committed May 3, 2024
1 parent 152ae4d commit 61ffea4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 61ffea4

Please sign in to comment.