lasthourcloud/.github/workflows/docker-image.yml

29 lines
641 B
YAML
Raw Normal View History

2023-03-20 21:17:28 +00:00
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
2023-03-29 15:39:08 +00:00
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
cp .env.example .env
docker run --rm -u "$(id -u):$(id -g)" \
-v "$(pwd):/app" \
-w /app composer:2 \
composer install --ignore-platform-reqs
./vendor/bin/sail build
./vendor/bin/sail up -d
./vendor/bin/sail artisan key:generate
./vendor/bin/sail artisan migrate:fresh --seed
./vendor/bin/pest