Skip to content

Commit

Permalink
add auto deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DakshChan committed Mar 2, 2024
1 parent 3e217a1 commit d8d5b27
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d8d5b27

Please sign in to comment.