-
Notifications
You must be signed in to change notification settings - Fork 60
50 lines (48 loc) · 1.83 KB
/
ubi8-openjdk-17-runtime.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
name: OpenJDK 17 Runtime Image CI
on: [push, pull_request]
env:
LANG: en_US.UTF-8
CEKIT_VERSION: 4.6.0
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
jobs:
openjdkci:
name: OpenJDK Runtime Build and Test
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Verify latest UBI image is present
run: |
docker pull registry.access.redhat.com/ubi8/ubi-minimal:latest
docker image ls | grep ubi8
- name: Setup required system packages
run: |
sudo apt-get update
sudo apt-get install -y virtualenv libkrb5-dev
- name: Setup virtualenv and install cekit and required packages
run: |
mkdir ~/cekit${{ env.CEKIT_VERSION }}
virtualenv -p python3 ~/cekit${{ env.CEKIT_VERSION }}
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
pip3 install cekit==${{ env.CEKIT_VERSION }} docker docker-squash odcs behave lxml
- name: Build
run: |
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
cekit -v --descriptor ubi8-openjdk-17-runtime.yaml build docker
docker image ls
# even though we don't run any S2I tests for the runtime images, the test suite
# will fail to start if the s2i binary is not present.
- name: install s2i binary
run: |
echo ===== Installing s2i from ${{ env.S2I_URL }} =====
mkdir /tmp/s2i/ && cd /tmp/s2i/
wget ${{ env.S2I_URI }}
tar xvf source-to-image*.gz
sudo mv s2i /usr/bin
which s2i
s2i version
- name: Behave Tests
run: |
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
cekit -v --descriptor ubi8-openjdk-17-runtime.yaml test behave