Added caches to CICD
Some checks failed
Test, build and push image to registry / phpunit-tests (push) Successful in 8m28s
Test, build and push image to registry / build-image (push) Has been cancelled

This commit is contained in:
2025-11-06 23:37:30 +01:00
parent a162bb2c1f
commit 29077ed6d6

View File

@@ -13,6 +13,13 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.3.0'
- name: Cache Composer
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction
- name: Run PHPUnit tests
@@ -30,6 +37,12 @@ jobs:
registry: git.matthiasg.dev
username: ninluc
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Cache Docker layers (registry-backed)
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: buildx-cache-${{ github.sha }}
restore-keys: buildx-cache-${{ github.sha }}
- name: Build and push
run: |
docker build -t git.matthiasg.dev/ninluc/datbrowser:latest .