-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (36 loc) · 1.03 KB
/
test.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
name: Test
on:
pull_request:
env:
APPS: "backup frepple odoo postgresql pyspy"
OS: "centos debian redhat ubuntu"
DOCKER_BUILDKIT: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: "Operating Systems"
run: |
OLD_PWD=$(pwd)
for image in `find $OS -name Dockerfile | sort -r`; do
echo "Building $image..."
cd $(dirname $image)
docker build . --file Dockerfile --no-cache
echo "Build of $image completed!"
! docker system prune -a -f
cd $OLD_PWD
done
- name: "Applications"
run: |
OLD_PWD=$(pwd)
for image in `find $APPS -name Dockerfile | sort -r`; do
echo "Building $image..."
cd $(dirname $image)
docker build . --file Dockerfile --no-cache
! docker system prune -a -f
echo "Build of $image completed!"
cd $OLD_PWD
done