Merge branch 'main' of https://github.com/Dog2657/Rust-Wordle-Api #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- main | |
jobs: | |
deploy: | |
name: "Deploy" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Remote SSH Commands | |
# You may pin to the exact commit or the version. | |
# uses: fifsky/ssh-action@58b3c484be9c20cf118fd3b939a6d2cb3c769512 | |
uses: fifsky/[email protected] | |
with: | |
command: | | |
cd Rust-Wordle-Api | |
ls | |
docker-compose down | |
docker system prune -f | |
git pull | |
git status | |
docker-compose up --build -d | |
host: ${{ secrets.DEPLOY_SSH_HOST }} | |
user: ${{ secrets.DEPLOY_SSH_USER }} | |
key: ${{ secrets.DEPLOY_SSH_KEY }} |