Chore: Adjust Workflows for v5 (#5689)

* chore(workflows): remove unsued workflow

* chore(workflows): rename branches in workflows

* fix(license): update copyright year

* chore(workflows): update branches to ignore in staging build workflow

* chore(workflows): update branch references in issue processing and changelog generation

---------

Co-authored-by: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com>
This commit is contained in:
🏔️ Peak
2025-04-24 20:48:54 +02:00
committed by GitHub
parent bc52042ac5
commit ff9c31d4da
8 changed files with 10 additions and 75 deletions

View File

@@ -1,65 +0,0 @@
name: Dusk
on:
push:
branches: [ "not-existing" ]
jobs:
dusk:
runs-on: ubuntu-latest
services:
redis:
image: redis
env:
REDIS_HOST: localhost
REDIS_PORT: 6379
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up PostgreSQL
run: |
sudo systemctl start postgresql
sudo -u postgres psql -c "CREATE DATABASE coolify;"
sudo -u postgres psql -c "CREATE USER coolify WITH PASSWORD 'password';"
sudo -u postgres psql -c "ALTER ROLE coolify SET client_encoding TO 'utf8';"
sudo -u postgres psql -c "ALTER ROLE coolify SET default_transaction_isolation TO 'read committed';"
sudo -u postgres psql -c "ALTER ROLE coolify SET timezone TO 'UTC';"
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE coolify TO coolify;"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Copy .env
run: cp .env.dusk.ci .env
- name: Install Dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Generate key
run: php artisan key:generate
- name: Install Chrome binaries
run: php artisan dusk:chrome-driver --detect
- name: Start Chrome Driver
run: ./vendor/laravel/dusk/bin/chromedriver-linux --port=4444 &
- name: Build assets
run: npm install && npm run build
- name: Run Laravel Server
run: php artisan serve --no-reload &
- name: Execute tests
run: php artisan dusk
- name: Upload Screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: screenshots
path: tests/Browser/screenshots
- name: Upload Console Logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: console
path: tests/Browser/console

View File

@@ -21,7 +21,7 @@ jobs:
async function processIssue(issueNumber, isFromPR = false, prBaseBranch = null) { async function processIssue(issueNumber, isFromPR = false, prBaseBranch = null) {
try { try {
if (isFromPR && prBaseBranch !== 'main') { if (isFromPR && prBaseBranch !== 'v4.x') {
return; return;
} }
@@ -70,7 +70,7 @@ jobs:
if (context.eventName === 'pull_request' || context.eventName === 'pull_request_target') { if (context.eventName === 'pull_request' || context.eventName === 'pull_request_target') {
const pr = context.payload.pull_request; const pr = context.payload.pull_request;
await processIssue(pr.number); await processIssue(pr.number);
if (pr.merged && pr.base.ref === 'main' && pr.body) { if (pr.merged && pr.base.ref === 'v4.x' && pr.body) {
const issueReferences = pr.body.match(/#(\d+)/g); const issueReferences = pr.body.match(/#(\d+)/g);
if (issueReferences) { if (issueReferences) {
for (const reference of issueReferences) { for (const reference of issueReferences) {

View File

@@ -2,7 +2,7 @@ name: Coolify Helper Image
on: on:
push: push:
branches: [ "main" ] branches: [ "v4.x" ]
paths: paths:
- .github/workflows/coolify-helper.yml - .github/workflows/coolify-helper.yml
- docker/coolify-helper/Dockerfile - docker/coolify-helper/Dockerfile

View File

@@ -2,7 +2,7 @@ name: Production Build (v4)
on: on:
push: push:
branches: ["main"] branches: ["v4.x"]
paths-ignore: paths-ignore:
- .github/workflows/coolify-helper.yml - .github/workflows/coolify-helper.yml
- .github/workflows/coolify-helper-next.yml - .github/workflows/coolify-helper-next.yml

View File

@@ -2,7 +2,7 @@ name: Coolify Realtime
on: on:
push: push:
branches: [ "main" ] branches: [ "v4.x" ]
paths: paths:
- .github/workflows/coolify-realtime.yml - .github/workflows/coolify-realtime.yml
- docker/coolify-realtime/Dockerfile - docker/coolify-realtime/Dockerfile

View File

@@ -3,8 +3,8 @@ name: Staging Build
on: on:
push: push:
branches-ignore: branches-ignore:
- main - v4.x
- v3 - v3.x
- '**v5.x**' - '**v5.x**'
paths-ignore: paths-ignore:
- .github/workflows/coolify-helper.yml - .github/workflows/coolify-helper.yml

View File

@@ -2,7 +2,7 @@ name: Generate Changelog
on: on:
push: push:
branches: [ main ] branches: [ v4.x ]
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@@ -33,4 +33,4 @@ jobs:
git config user.email 'github-actions[bot]@users.noreply.github.com' git config user.email 'github-actions[bot]@users.noreply.github.com'
git add CHANGELOG.md git add CHANGELOG.md
git commit -m "docs: update changelog" git commit -m "docs: update changelog"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git main git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git v4.x

View File

@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright [2022] [Andras Bacsai] Copyright [2025] [Andras Bacsai]
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.