update peerly #204
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: Website Updater | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
jobs: | |
Update: | |
runs-on: self-hosted | |
steps: | |
- name: Clone repository to local | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Copy env file | |
run: cp ../.env ./backend/ | |
- name: Rebuild containers | |
run: sudo docker compose build | |
- name: Run docker containers | |
run: sudo docker compose up -d | |
- name: Prune old containers | |
run: sudo docker system prune -f |