ci(release): standardize production workflows on main

Route production builds, releases, and changelog generation through `main`, update contribution guidance for main/next branch targets, and cover the branch policy in workflow tests.
This commit is contained in:
Andras Bacsai
2026-08-12 13:12:55 +02:00
parent e2184d30a2
commit 08627795a5
12 changed files with 79 additions and 32 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ name: Coolify Helper Image
on:
push:
branches: [ "v4.x", "main" ]
branches: [ "main" ]
paths:
- .github/workflows/coolify-helper.yml
- docker/coolify-helper/Dockerfile
+1 -1
View File
@@ -2,7 +2,7 @@ name: Coolify Realtime
on:
push:
branches: [ "v4.x", "main" ]
branches: [ "main" ]
paths:
- .github/workflows/coolify-realtime.yml
- docker/coolify-realtime/**
+2 -2
View File
@@ -30,9 +30,9 @@ jobs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Reject releases outside the production branch
if: ${{ ! contains(fromJSON('["v4.x", "main"]'), github.ref_name) }}
if: ${{ github.ref_name != 'main' }}
run: |
echo "Stable releases must run from v4.x or main, not ${{ github.ref_name }}."
echo "Stable releases must run from main, not ${{ github.ref_name }}."
exit 1
- uses: actions/checkout@v5
+1 -1
View File
@@ -2,7 +2,7 @@ name: Build Coolify (SHA)
on:
push:
branches: ["v4.x", "main"]
branches: ["main"]
permissions:
contents: read
@@ -3,7 +3,6 @@ name: Staging Build
on:
push:
branches-ignore:
- v4.x
- main
- v3.x
- '**v5.x**'
+1 -1
View File
@@ -2,7 +2,7 @@ name: Generate Changelog
on:
push:
branches: [ v4.x, main ]
branches: [ main ]
paths-ignore:
- .github/workflows/coolify-helper.yml
- .github/workflows/coolify-helper-next.yml