Skip to content

let pipeline happen at wherever the actions runner chooses #3

let pipeline happen at wherever the actions runner chooses

let pipeline happen at wherever the actions runner chooses #3

Workflow file for this run

name: CI/CD for website
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy-project:
runs-on: home-server
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check docker compose is present
run: |
docker compose --version
- name: Navigate to the hbd dir and build + bring up the container
run: |
docker compose -f docker-compose-prod.yml build &&
docker stop hbd || true &&
docker rm hbd || true &&
docker compose -f docker-compose-prod-yml up -d hbd