diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..f854da1 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Deployment + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: self-hosted + environment: + name: production + url: https://robotics-club.utm.utoronto.ca/ + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: compose build + run: docker compose build + + - name: compose up + run: docker compose up -d + + - name: cleanup + run: | + docker system prune -a -f