Skip to content

fix Caddyfile config, update PHP dependencies, vendor in frontend dep… #42

fix Caddyfile config, update PHP dependencies, vendor in frontend dep…

fix Caddyfile config, update PHP dependencies, vendor in frontend dep… #42

Workflow file for this run

name: Continuous Integration
on: push
jobs:
run-tests:
name: Run linter and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- run: docker compose up -d caddy php-fpm knots redis
- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- run: composer install
- run: php vendor/bin/php-cs-fixer check -v
- run: composer setup
- run: composer test
- if: always()
run: docker compose down -v
build-image:
name: Build Docker image
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs:
- run-tests
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: 1maa
password: ${{ secrets.DOCKER_HUB_PASS }}
- uses: docker/build-push-action@v5
with:
cache-from: type=registry,ref=1maa/bbo-faucet:latest
cache-to: type=inline
context: .
push: true
tags: 1maa/bbo-faucet:latest