diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b7debe1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: ci + +on: push + +jobs: + deploy: + if: github.ref == 'refs/heads/master' + runs-on: ubuntu-latest + steps: + - uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + password: ${{ secrets.SSH_PASSWORD }} + port: ${{ secrets.SSH_PORT }} + script: | + cd ~/goal-dsl + git reset --hard origin/master + git pull https://${{ secrets.CLONE_TOKEN }}@github.com/robotics-4-all/goal-dsl master + docker build -t goaldsl . + docker compose down + docker compose build + docker compose up -d