Skip to content

Merge pull request #217 from squi-ddy/dependabot/npm_and_yarn/fronten… #282

Merge pull request #217 from squi-ddy/dependabot/npm_and_yarn/fronten…

Merge pull request #217 from squi-ddy/dependabot/npm_and_yarn/fronten… #282

Workflow file for this run

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: Copy peerly secrets
run: cp ../peerly-secrets.json ./peerly/backend/src/secrets.json
- 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