Expose avatars volume and update docs
All checks were successful
linter / quality (push) Successful in 47s
tests / ci (push) Successful in 1m18s

This commit is contained in:
Javier Feliz 2025-08-04 23:49:19 -04:00
parent 48ae0754df
commit 948b52998e
3 changed files with 5 additions and 67 deletions

View File

@ -1,67 +0,0 @@
name: Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: authentikate_test
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
ports:
- 3306:3306
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, dom, fileinfo, mysql, openssl
coverage: xdebug
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Copy environment file
run: cp .env.example .env
- name: Generate application key
run: php artisan key:generate
- name: Set up test database
run: |
php artisan config:clear
php artisan migrate --env=testing --force
- name: Set up test RSA keys
run: ./scripts/setup-test-keys.sh setup
- name: Run tests
run: php artisan test --coverage
- name: Clean up test RSA keys
run: ./scripts/setup-test-keys.sh cleanup
if: always()
- name: Upload coverage reports
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: true

View File

@ -8,4 +8,5 @@ COPY . /app
# ENV ENABLE_SCHEDULER=true
VOLUME [ "/app/storage/oauth" ]
VOLUME [ "/app/storage/avatars" ]
VOLUME [ "/app/database" ]

View File

@ -33,6 +33,10 @@ openssl rand -base64 32
> are stored. If these change, all the authentication will be messed up.
> [!WARNING]
> You should to bind to the `/app/storage/avatars` volume so you don't lose all avatars on restart.
::: code-group
```yaml [docker-compose.yml]