-
Notifications
You must be signed in to change notification settings - Fork 89
38 lines (35 loc) · 1.15 KB
/
containers.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
name: Celix development containers
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday at 00:00 UTC
jobs:
container-build-ubuntu:
runs-on: ubuntu-22.04
timeout-minutes: 120
steps:
- name: Checkout source code
uses: actions/checkout@v3.3.0
- name: Build container image
run: |
cd $GITHUB_WORKSPACE/container/
./build-ubuntu-container.sh
- name: Build Celix using container image
run: |
cd $GITHUB_WORKSPACE/container/
./run-ubuntu-container.sh "mkdir -p build && cd build && ../container/support-scripts/build-all.sh && make -j"
- name: Run Celix tests using container image
run: |
cd $GITHUB_WORKSPACE/container/
./run-ubuntu-container.sh "cd build && ctest --output-on-failure"
container-build-gitpod:
runs-on: ubuntu-22.04
timeout-minutes: 120
steps:
- name: Checkout source code
uses: actions/checkout@v3.3.0
- name: Build container image
run: |
cd $GITHUB_WORKSPACE/container/
docker build -t apache/celix-dev:gitpod-latest -f Containerfile.gitpod .