Skip to content

Commit 304a835

Browse files
committed
Add runtime images to GitHub Actions CI
Fixes #216. Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 78f8ddd commit 304a835

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: OpenJDK 11 Runtime Image CI
2+
on: [push, pull_request]
3+
env:
4+
LANG: en_US.UTF-8
5+
CEKIT_VERSION: 3.11.0
6+
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
7+
jobs:
8+
openjdkci:
9+
name: OpenJDK Runtime Build and Test
10+
runs-on: ubuntu-18.04
11+
strategy:
12+
fail-fast: false
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Verify latest UBI image is present
16+
run: |
17+
docker pull registry.access.redhat.com/ubi8/ubi-minimal:latest
18+
docker image ls | grep ubi8
19+
- name: Setup required system packages
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y krb5-multidev virtualenv
23+
- name: Setup virtualenv and install cekit and required packages
24+
run: |
25+
mkdir ~/cekit${{ env.CEKIT_VERSION }}
26+
virtualenv -p python3.6 ~/cekit${{ env.CEKIT_VERSION }}
27+
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
28+
pip3 install cekit==${{ env.CEKIT_VERSION }} docker docker-squash odcs behave lxml
29+
- name: Build
30+
run: |
31+
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
32+
cekit -v --descriptor ubi8-openjdk-11-runtime.yaml build docker
33+
docker image ls
34+
- name: Behave Tests
35+
run: |
36+
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
37+
cekit -v --descriptor ubi8-openjdk-11-runtime.yaml test behave
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: OpenJDK 8 Runtime Image CI
2+
on: [push, pull_request]
3+
env:
4+
LANG: en_US.UTF-8
5+
CEKIT_VERSION: 3.11.0
6+
S2I_URI: https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
7+
jobs:
8+
openjdkci:
9+
name: OpenJDK Runtime Build and Test
10+
runs-on: ubuntu-18.04
11+
strategy:
12+
fail-fast: false
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Verify latest UBI image is present
16+
run: |
17+
docker pull registry.access.redhat.com/ubi8/ubi-minimal:latest
18+
docker image ls | grep ubi8
19+
- name: Setup required system packages
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y krb5-multidev virtualenv
23+
- name: Setup virtualenv and install cekit and required packages
24+
run: |
25+
mkdir ~/cekit${{ env.CEKIT_VERSION }}
26+
virtualenv -p python3.6 ~/cekit${{ env.CEKIT_VERSION }}
27+
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
28+
pip3 install cekit==${{ env.CEKIT_VERSION }} docker docker-squash odcs behave lxml
29+
- name: Build
30+
run: |
31+
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
32+
cekit -v --descriptor ubi8-openjdk-8-runtime.yaml build docker
33+
docker image ls
34+
- name: Behave Tests
35+
run: |
36+
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
37+
cekit -v --descriptor ubi8-openjdk-8-runtime.yaml test behave

0 commit comments

Comments
 (0)