-
-
Notifications
You must be signed in to change notification settings - Fork 6
79 lines (68 loc) · 2.18 KB
/
tests.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Tests
on:
pull_request:
branches:
- master
- main
jobs:
buildx:
name: Test image build
runs-on: ubuntu-latest
# strategy:
# matrix:
# docker-platform:
# - linux/amd64
steps:
# Check out our code
-
name: Checkout
uses: actions/checkout@v4
# Hit an issue where arm builds would fail with cURL errors regarding intermediary certificates when downloading from github (ie: deploy-s6-overlay).
# After many hours of troubleshooting, the workaround is to pre-load the image's rootfs with the CA certificates from the runner.
# This problem may go away in future.
-
name: Copy CA Certificates from GitHub Runner to Image rootfs
run: |
ls -la /etc/ssl/certs/
mkdir -p ./rootfs/etc/ssl/certs
mkdir -p ./rootfs/usr/share/ca-certificates/mozilla
cp --no-dereference /etc/ssl/certs/*.crt ./rootfs/etc/ssl/certs
cp --no-dereference /etc/ssl/certs/*.pem ./rootfs/etc/ssl/certs
cp --no-dereference /usr/share/ca-certificates/mozilla/*.crt ./rootfs/usr/share/ca-certificates/mozilla
# Set up QEMU for multi-arch builds
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
# Set up buildx for multi platform builds
-
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
# # Test container build for all supported platforms (defined above)
# -
# name: Test Build ${{ matrix.docker-platform }}
# uses: docker/build-push-action@v2
# with:
# context: .
# file: ./Dockerfile
# no-cache: true
# platforms: ${{ matrix.docker-platform }}
# push: false
-
name: Install prereqs for testing
run: |
sudo apt-get update
sudo apt-get install -y expect telnet
-
name: Test Build
run: |
pwd
pushd testing
docker compose build
popd
- name: Test Basic Functionality
run: |
pwd
pushd ./testing
bash -e ./test_email_delivery.sh
popd