-
Notifications
You must be signed in to change notification settings - Fork 24
44 lines (37 loc) · 1.33 KB
/
build-docker-dev.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build Docker
on:
push:
branches:
- dev
- main
pull_request:
paths:
- .github/workflows/build-docker-dev.yml
- docker-compose.yml
- docker-compose.override.yml
- docker-compose.dev.ssl.yml
- docker-compose.deploy.yml
- docker-compose.deploy.nonssl.yml
- docker-compose.deploy.ssl.yml
workflow_dispatch:
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build backend, frontend & feed
run: docker compose -f docker-compose.yml -f docker-compose.deploy.yml build --no-cache backend frontend feed
validate-docker-compose:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate docker-compose
run: docker compose config
- name: Validate docker-compose.dev.ssl.yml
run: docker compose -f docker-compose.yml -f docker-compose.dev.ssl.yml config
- name: Validate docker-compose.deploy.yml with SSL
run: docker compose -f docker-compose.yml -f docker-compose.deploy.yml -f docker-compose.deploy.ssl.yml config
- name: Validate docker-compose.deploy.yml with NoSSL
run: docker compose -f docker-compose.yml -f docker-compose.deploy.yml -f docker-compose.deploy.nonssl.yml config