Update deploy.yml #10
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: Deployment | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
environment: | |
name: production | |
url: https://cssc.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 image prune -f | |
docker builder prune -f |