-
Notifications
You must be signed in to change notification settings - Fork 21
27 lines (25 loc) · 792 Bytes
/
build.yml
File metadata and controls
27 lines (25 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Build
on: [pull_request]
jobs:
build:
name: Docker Build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Env Files
run: |
cp .docker/php.env.development .docker/php.env
cp .docker/mysql.env.development .docker/mysql.env
- name: Pull images
run: docker compose pull
- name: Build
run: docker compose build --build-arg UID=$(id -u) --build-arg ENV=dev
- name: Start
run: docker compose up -d
- name: Wait for services
run: sleep 10
- name: Check CakePHP Welcome Page
run: curl -f -v -o /dev/null http://localhost:8080
- name: Check NGINX Files
run: curl -f -v -o /dev/null http://localhost:8080/css/home.css