Compare commits

...

46 Commits

Author SHA1 Message Date
Brock H Caldwell
e489f73f7c fix(ci): adds --ignore-platform-reqs to composer
All checks were successful
CI / build-test (push) Successful in 2m54s
2026-03-09 13:59:25 -05:00
Brock H Caldwell
554b7774f6 Update docker
All checks were successful
CI / build-test (push) Successful in 3m10s
2026-03-09 13:14:27 -05:00
Brock H Caldwell
86ea9d5b38 Update ci
All checks were successful
CI / build-test (push) Successful in 3m52s
2026-03-09 12:45:40 -05:00
Brock H Caldwell
a61da34f2a Update ci
All checks were successful
CI / build-test (push) Successful in 3m6s
2026-03-09 12:41:33 -05:00
Brock H Caldwell
225754dfe5 Update ci
All checks were successful
CI / build-test (push) Successful in 3m25s
2026-03-09 12:01:56 -05:00
Brock H Caldwell
6e358fe1eb Update ci
All checks were successful
CI / build-test (push) Successful in 3m7s
2026-03-09 11:51:26 -05:00
Brock H Caldwell
a2da2698e3 Update ci
Some checks failed
CI / build-test (push) Failing after 1m57s
2026-03-09 11:41:59 -05:00
Brock H Caldwell
ee017d7ae6 Update ci
All checks were successful
CI / build-test (push) Successful in 14m37s
2026-03-08 23:37:49 -05:00
Brock H Caldwell
b0b5211e88 Update ci
All checks were successful
CI / build-test (push) Successful in 1m46s
2026-03-08 23:35:06 -05:00
Brock H Caldwell
c6f0220889 Update ci
All checks were successful
CI / build-test (push) Successful in 1m52s
2026-03-08 23:31:14 -05:00
Brock H Caldwell
b1cd1cf0bf Update ci
All checks were successful
CI / build-test (push) Successful in 1m53s
2026-03-08 23:28:05 -05:00
Brock H Caldwell
dab6504e71 Update ci
All checks were successful
CI / build-test (push) Successful in 1m44s
2026-03-08 23:17:44 -05:00
Brock H Caldwell
e361e998b3 Update ci
Some checks failed
CI / build-test (push) Failing after 6s
2026-03-08 23:16:40 -05:00
Brock H Caldwell
bc73625121 Update ci
Some checks failed
CI / build-test (push) Failing after 7s
2026-03-08 23:15:43 -05:00
Brock H Caldwell
a2439f3619 Update ci
All checks were successful
CI / build-test (push) Successful in 2m3s
2026-03-08 22:46:39 -05:00
Brock H Caldwell
edfb1b92cb Update ci
All checks were successful
CI / build-test (push) Successful in 1m59s
2026-03-08 22:34:57 -05:00
Brock H Caldwell
1097e4c313 Update ci
Some checks failed
CI / build-test (push) Has been cancelled
2026-03-08 22:28:30 -05:00
Brock H Caldwell
fe10a8d4b0 Update ci
Some checks failed
CI / build-test (push) Has been cancelled
2026-03-08 22:28:02 -05:00
Brock H Caldwell
96da4ce1b0 Update ci
Some checks failed
CI / build-test (push) Has been cancelled
2026-03-08 22:27:26 -05:00
Brock H Caldwell
6aad92a0c6 Update ci
Some checks failed
CI / build-test (push) Has been cancelled
2026-03-08 22:25:33 -05:00
Brock H Caldwell
7fc7db0577 Update ci
Some checks failed
CI / build-test (push) Has been cancelled
2026-03-08 22:12:53 -05:00
Brock H Caldwell
e5ed2d9556 Update ci
Some checks failed
CI / build-test (push) Has been cancelled
2026-03-08 22:10:23 -05:00
Brock H Caldwell
fbe4e736c8 Update ci
Some checks failed
CI / build-test (push) Has been cancelled
2026-03-08 22:08:52 -05:00
Brock H Caldwell
bc635d5b76 Update ci
All checks were successful
CI / build-test (push) Successful in 15m13s
2026-03-08 21:01:20 -05:00
Brock H Caldwell
c3a9c69c91 Update ci
Some checks failed
CI / build-test (push) Failing after 2m48s
2026-03-08 20:57:46 -05:00
Brock H Caldwell
b043bb9cc9 Update ci
Some checks failed
CI / build-test (push) Failing after 1m57s
2026-03-08 20:51:23 -05:00
Brock H Caldwell
d9afa9b558 Update ci
Some checks failed
CI / build-test (push) Failing after 2m34s
2026-03-08 20:45:52 -05:00
Brock H Caldwell
4f0b873bed Update ci
Some checks failed
CI / build-test (push) Failing after 1m52s
2026-03-08 20:43:04 -05:00
Brock H Caldwell
fb067d5396 Update ci
All checks were successful
CI / build-test (push) Successful in 1m59s
2026-03-08 20:37:44 -05:00
Brock H Caldwell
dbaf7c4880 Update ci
All checks were successful
CI / build-test (push) Successful in 1m50s
2026-03-08 20:29:36 -05:00
Brock H Caldwell
4750c53b58 Merge branch 'main' of https://code.caldwell.digital/home/torsearch
Some checks failed
CI / build-test (push) Failing after 1m38s
2026-03-08 20:25:14 -05:00
Brock H Caldwell
aa0ce72d35 fix: errors preventing builds 2026-03-08 20:24:59 -05:00
6360e6495f Update .gitea/workflows/sonarqube_scans.yml
Some checks failed
CI / build-test (push) Failing after 1m18s
2026-03-08 23:39:50 +00:00
Brock H Caldwell
ed2f797ac2 Merge branch 'main' of https://code.caldwell.digital/home/torsearch
Some checks failed
CI / build-test (push) Failing after 1m23s
2026-03-08 18:37:03 -05:00
Brock H Caldwell
91f91c20fa fix: pins doctrine to prod, dev, & test envs 2026-03-08 18:36:03 -05:00
2f7d276781 Update .env
Some checks failed
CI / build-test (push) Failing after 1m29s
2026-03-08 23:01:28 +00:00
e22306225b Update .gitea/workflows/sonarqube_scans.yml
Some checks failed
CI / build-test (push) Failing after 1m23s
2026-03-08 21:26:22 +00:00
6a860a4d75 Update .gitea/workflows/sonarqube_scans.yml
All checks were successful
CI / build-test (push) Successful in 1m43s
2026-03-08 21:21:52 +00:00
5ff89b905f Update .gitea/workflows/sonarqube_scans.yml
All checks were successful
CI / build-test (push) Successful in 1m13s
2026-03-08 21:18:23 +00:00
49b017de3d Update .gitea/workflows/sonarqube_scans.yml
Some checks failed
CI / build-test (push) Failing after 1m18s
2026-03-08 21:11:13 +00:00
937b673be6 Update .gitea/workflows/sonarqube_scans.yml
Some checks failed
CI / build-test (push) Failing after 5m41s
2026-03-08 21:01:49 +00:00
3e04d0a82d Update .gitea/workflows/sonarqube_scans.yml
Some checks failed
CI / build-test (push) Failing after 56s
2026-03-08 20:51:11 +00:00
706e8e9892 Update .gitea/workflows/sonarqube_scans.yml
Some checks failed
CI / build-test (push) Failing after 4m50s
2026-03-08 20:08:46 +00:00
154292530a Update .gitea/workflows/sonarqube_scans.yml
Some checks failed
CI / build-test (push) Failing after 43s
2026-03-08 02:52:29 +00:00
82c3f7bb78 Update .gitea/workflows/sonarqube_scans.yml
Some checks failed
CI / build-test (push) Failing after 1m19s
2026-03-08 02:49:42 +00:00
e7f8f278ee Update .gitea/workflows/sonarqube_scans.yml
Some checks failed
CI / build-test (push) Failing after 1m40s
2026-03-08 00:42:40 +00:00
6 changed files with 145 additions and 61 deletions

3
.env
View File

@@ -13,7 +13,7 @@
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
APP_URL=
###> symfony/framework-bundle ###
APP_ENV=prod
APP_SECRET=
@@ -27,6 +27,7 @@ APP_SECRET=
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
# DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
DATABASE_URL=
###< doctrine/doctrine-bundle ###
MERCURE_JWT_SECRET="!ChangeThisMercureHubJWTSecretKey!"

102
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,102 @@
name: CI
on:
push:
tags:
- "v*"
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
- name: Install phing
run: composer global require phing/phing
- name: Run composer
run: composer install --no-dev --no-scripts --ignore-platform-reqs -o
- name: Build tailwind
run: APP_ENV=build php bin/console tailwind:build
- name: Install frontend assets
run: APP_ENV=build php bin/console importmap:install
- name: Compile assets
run: APP_ENV=build php bin/console asset-map:compile
- name: Login to registry
uses: docker/login-action@v2
with:
registry: "${{ vars.REGISTRY_URL }}"
username: "${{ vars.REGISTRY_USER }}"
password: "${{ vars.REGISTRY_PASS }}"
- name: Create torsearch-app docker image
run: |
tag="${{ gitea.REF_NAME }}"
tmdb_api="${{ vars.TMDB_API }}"
version=${tag:1}
docker build -f docker/Dockerfile.app \
-t code.caldwell.digital/home/torsearch-app:${version} \
-t code.caldwell.digital/home/torsearch-app:latest \
--build-arg "APP_VERSION=${version}" \
--build-arg "TMDB_API=${tmdb_api}" \
.
docker push code.caldwell.digital/home/torsearch-app:${version}
docker push code.caldwell.digital/home/torsearch-app:latest
- name: Create torsearch-worker docker image
run: |
tag="${{ gitea.REF_NAME }}"
tmdb_api="${{ vars.TMDB_API }}"
version=${tag:1}
docker build -f docker/Dockerfile.worker \
-t code.caldwell.digital/home/torsearch-worker:${version} \
-t code.caldwell.digital/home/torsearch-worker:latest \
--build-arg "APP_VERSION=${version}" \
--build-arg "TMDB_API=${tmdb_api}" \
.
docker push code.caldwell.digital/home/torsearch-worker:${version}
docker push code.caldwell.digital/home/torsearch-worker:latest
- name: Create torsearch-scheduler docker image
run: |
tag="${{ gitea.REF_NAME }}"
tmdb_api="${{ vars.TMDB_API }}"
version=${tag:1}
docker build -f docker/Dockerfile.scheduler \
-t code.caldwell.digital/home/torsearch-scheduler:${version} \
-t code.caldwell.digital/home/torsearch-scheduler:latest \
--build-arg "APP_VERSION=${version}" \
--build-arg "TMDB_API=${tmdb_api}" \
.
docker push code.caldwell.digital/home/torsearch-scheduler:${version}
docker push code.caldwell.digital/home/torsearch-scheduler:latest
- name: Create artifact
run: |
file="torsearch-${{ gitea.REF_NAME }}.tar.gz"
touch $file
tar -cvzf $file --exclude=$file .
- name: Create release
uses: akkuman/gitea-release-action@v1
with:
files: |-
"torsearch-${{ gitea.REF_NAME }}.tar.gz"
# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: "torsearch-${{ gitea.REF_NAME }}.tar.gz"
# path: "torsearch-${{ gitea.REF_NAME }}.tar.gz"
# compression_level: 9

View File

@@ -1,24 +0,0 @@
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
name: SonarQube Scan
jobs:
sonarqube:
name: SonarQube Trigger
runs-on: ubuntu-latest
steps:
- name: Checking out
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarQube Scan
uses: https://code.caldwell.digital/tools/sonarqube-action@v0.0.3
with:
host: "https://qube.caldwell.digital"
login: ${{ secrets.SONARQUBE_TOKEN }}
projectName: "torsearch"
projectBaseDir: "./src"

View File

@@ -1,40 +1,43 @@
sentry:
register_error_listener: true # Disables the ErrorListener to avoid duplicated log in sentry
register_error_handler: true # Disables the ErrorListener, ExceptionListener and FatalErrorListener integrations of the base PHP SDK
when@prod: &prod
sentry:
register_error_listener: true # Disables the ErrorListener to avoid duplicated log in sentry
register_error_handler: true # Disables the ErrorListener, ExceptionListener and FatalErrorListener integrations of the base PHP SDK
options:
release: 'torsearch@%app.version%'
enable_logs: true
traces_sample_rate: 1
profiles_sample_rate: 1
attach_stacktrace: true
options:
release: 'torsearch@%app.version%'
enable_logs: true
traces_sample_rate: 1
profiles_sample_rate: 1
attach_stacktrace: true
tracing:
enabled: true
dbal: # DB queries
enabled: true
cache: # cache pools
enabled: true
twig: # templating engine
tracing:
enabled: true
dbal: # DB queries
enabled: true
cache: # cache pools
enabled: true
twig: # templating engine
enabled: true
services:
# (Optionally) Configure the breadcrumb handler as a service (needed for the breadcrumb Monolog handler)
Sentry\Monolog\BreadcrumbHandler:
arguments:
- '@Sentry\State\HubInterface'
- !php/const Monolog\Logger::INFO # Configures the level of messages to capture as breadcrumbs
monolog:
handlers:
# (Optionally) Register the breadcrumb handler as a Monolog handler
sentry_breadcrumbs:
type: service
name: sentry_breadcrumbs
id: Sentry\Monolog\BreadcrumbHandler
# Register the handler as a Monolog handler to capture messages as events
sentry:
type: sentry
level: !php/const Monolog\Logger::ERROR # Configures the level of messages to capture as events
hub_id: Sentry\State\HubInterface
fill_extra_context: true # Enables sending monolog context to Sentry
process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders in reported messages
services:
# (Optionally) Configure the breadcrumb handler as a service (needed for the breadcrumb Monolog handler)
Sentry\Monolog\BreadcrumbHandler:
arguments:
- '@Sentry\State\HubInterface'
- !php/const Monolog\Logger::INFO # Configures the level of messages to capture as breadcrumbs
monolog:
handlers:
# (Optionally) Register the breadcrumb handler as a Monolog handler
sentry_breadcrumbs:
type: service
name: sentry_breadcrumbs
id: Sentry\Monolog\BreadcrumbHandler
# Register the handler as a Monolog handler to capture messages as events
sentry:
type: sentry
level: !php/const Monolog\Logger::ERROR # Configures the level of messages to capture as events
hub_id: Sentry\State\HubInterface
fill_extra_context: true # Enables sending monolog context to Sentry
process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders in reported messages
when@dev: *prod

View File

@@ -15,6 +15,7 @@ FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} AS app_image
FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
# Set the APP_VERSION in the image
ARG APP_VERSION="latest"
ENV APP_VERSION=${APP_VERSION}
ARG TMDB_API=""

View File

@@ -15,6 +15,7 @@ FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} AS app_image
FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
# Set the APP_VERSION in the image
ARG APP_VERSION="latest"
ENV APP_VERSION=${APP_VERSION}
ARG TMDB_API=""