Skip to content

Commit

Permalink
Fixed variable interpolation issues in SSH commands
Browse files Browse the repository at this point in the history
  • Loading branch information
onecrayon committed Jan 21, 2024
1 parent 6ce5a13 commit c6e9de5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ jobs:
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_HOST: ${{ secrets.SSH_HOST }}
- name: Stop the server
run: ssh deploy-server 'cd "$SCRIPT_PATH" && ./stop'
run: ssh deploy-server "cd \"$SCRIPT_PATH\" && ./stop"
- name: Check out source
run: ssh deploy-server 'cd "${SCRIPT_PATH}/api.ashes.live" && git fetch && git reset --hard origin/main'
run: ssh deploy-server "cd \"${SCRIPT_PATH}/${REPO_NAME}\" && git fetch && git reset --hard origin/main"
env:
REPO_NAME: ${{ github.event.repository.name }}
- name: Update dependencies & run migrations
run: ssh deploy-server 'cd "$SCRIPT_PATH" && ./update'
run: ssh deploy-server "cd \"$SCRIPT_PATH\" && ./update"
- name: Start the server
if: ${{ always() }}
run: ssh deploy-server 'cd "$SCRIPT_PATH" && ./start'
run: ssh deploy-server "cd \"$SCRIPT_PATH\" && ./start"

0 comments on commit c6e9de5

Please sign in to comment.