From d8d5b27e4d79e537ff0fe20ab77e79e4f36e8f69 Mon Sep 17 00:00:00 2001 From: Daksh Malhotra Date: Fri, 1 Mar 2024 21:43:06 -0500 Subject: [PATCH] add auto deploy workflow --- .github/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/deploy.yml 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