From 18fa9000e5529db543fed8c8460506976eed3bdb Mon Sep 17 00:00:00 2001 From: myrmidex Date: Sun, 16 Aug 2026 01:06:59 +0200 Subject: [PATCH] 56 - Remove stale CI: .github workflows and Jenkinsfile --- .forgejo/workflows/ci.yml | 2 +- .github/workflows/lint.yml | 45 -------------------------- .github/workflows/tests.yml | 50 ----------------------------- Jenkinsfile | 63 ------------------------------------- 4 files changed, 1 insertion(+), 159 deletions(-) delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/tests.yml delete mode 100644 Jenkinsfile diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index cd54e51..a4127b0 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -4,7 +4,7 @@ on: push: branches: ['release/*'] pull_request: - branches: [main] + branches: [main, 'release/*'] jobs: ci: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 9f2ccc0..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: linter - -on: - push: - branches: - - develop - - main - pull_request: - branches: - - develop - - main - -permissions: - contents: write - -jobs: - quality: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.4' - - - name: Install Dependencies - run: | - composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - npm install - - - name: Run Pint - run: vendor/bin/pint - - - name: Format Frontend - run: npm run format - - - name: Lint Frontend - run: npm run lint - - # - name: Commit Changes - # uses: stefanzweifel/git-auto-commit-action@v5 - # with: - # commit_message: fix code style - # commit_options: '--no-verify' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 485e083..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: tests - -on: - push: - branches: - - develop - - main - pull_request: - branches: - - develop - - main - -jobs: - ci: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.4 - tools: composer:v2 - coverage: xdebug - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'npm' - - - name: Install Node Dependencies - run: npm ci - - - name: Build Assets - run: npm run build - - - name: Install Dependencies - run: composer install --no-interaction --prefer-dist --optimize-autoloader - - - name: Copy Environment File - run: cp .env.example .env - - - name: Generate Application Key - run: php artisan key:generate - - - name: Tests - run: ./vendor/bin/phpunit diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 4074927..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,63 +0,0 @@ -pipeline { - agent any - - triggers { - GenericTrigger( - causeString: 'Triggered on tag push', - token: 'tag-trigger-secret', - printContributedVariables: true, - printPostContent: true, - regexpFilterExpression: 'ref=refs/tags/.*\nafter=(?!0{40}).*', - regexpFilterText: '$ref\n$after', - genericVariables: [ - [key: 'ref', value: '$.ref'], - [key: 'after', value: '$.after'] - ] - ) - } - - environment { - REGISTRY = 'codeberg.org' - IMAGE_NAME = "${REGISTRY}/lvl0/incr" - DOCKER_CREDENTIALS_ID = 'codeberg-registry' - } - - stages { - stage('Tag Push Filter') { - steps { - script { - if (!env.ref?.startsWith('refs/tags/')) { - echo "Not a tag push (ref = ${env.ref}). Skipping build." - currentBuild.result = 'NOT_BUILT' - return - } - } - } - } - - stage('Build & Push Docker Image') { - when { - expression { - return env.ref?.startsWith('refs/tags/') && env.after != null && env.after != "0000000000000000000000000000000000000000" - } - } - steps { - script { - def tagName = env.ref.replaceFirst(/^refs\/tags\//, '') - def cleanedTag = tagName.replaceFirst(/^v/, '') - - sh "docker build -t $IMAGE_NAME:$cleanedTag -f docker/Dockerfile ." - - withCredentials([usernamePassword(credentialsId: "$DOCKER_CREDENTIALS_ID", usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { - sh """ - echo "$PASSWORD" | docker login $REGISTRY -u "$USERNAME" --password-stdin - docker push $IMAGE_NAME:$cleanedTag - docker tag $IMAGE_NAME:$cleanedTag $IMAGE_NAME:latest - docker push $IMAGE_NAME:latest - """ - } - } - } - } - } -}