Auto deploy production on main merge

This commit is contained in:
blaisadmin
2026-05-30 22:47:11 -04:00
parent c9702495a3
commit f2017068d5
+3 -2
View File
@@ -3,13 +3,14 @@ name: Deploy
on: on:
push: push:
branches: branches:
- main
- dev - dev
- develop - develop
workflow_dispatch: workflow_dispatch:
jobs: jobs:
deploy-dev: deploy-dev:
if: ${{ github.event_name == 'push' }} if: ${{ github.event_name == 'push' && (github.ref_name == 'dev' || github.ref_name == 'develop') }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
volumes: volumes:
@@ -48,7 +49,7 @@ jobs:
docker compose -f docker-compose.dev.yaml up -d --build docker compose -f docker-compose.dev.yaml up -d --build
deploy-prod: deploy-prod:
if: ${{ github.event_name == 'workflow_dispatch' }} if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref_name == 'main') }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
volumes: volumes: