From 948b52998e9e05e5c4c7f0d98e4d97610c3777a6 Mon Sep 17 00:00:00 2001 From: Javier Feliz Date: Mon, 4 Aug 2025 23:49:19 -0400 Subject: [PATCH] Expose avatars volume and update docs --- .github/workflows/tests.yml.example | 67 ----------------------------- Dockerfile | 1 + docs/quick-start/index.md | 4 ++ 3 files changed, 5 insertions(+), 67 deletions(-) delete mode 100644 .github/workflows/tests.yml.example diff --git a/.github/workflows/tests.yml.example b/.github/workflows/tests.yml.example deleted file mode 100644 index 394ead5..0000000 --- a/.github/workflows/tests.yml.example +++ /dev/null @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index d3c250e..36b05b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,5 @@ COPY . /app # ENV ENABLE_SCHEDULER=true VOLUME [ "/app/storage/oauth" ] +VOLUME [ "/app/storage/avatars" ] VOLUME [ "/app/database" ] \ No newline at end of file diff --git a/docs/quick-start/index.md b/docs/quick-start/index.md index e83ca14..2191687 100644 --- a/docs/quick-start/index.md +++ b/docs/quick-start/index.md @@ -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]