Skip to content

Commit 6a0c4b7

Browse files
committed
Add "install s2i" step to runtime image workflows
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. Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 304a835 commit 6a0c4b7

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/ubi8-openjdk-11-runtime.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ jobs:
3131
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
3232
cekit -v --descriptor ubi8-openjdk-11-runtime.yaml build docker
3333
docker image ls
34+
35+
# even though we don't run any S2I tests for the runtime images, the test suite
36+
# will fail to start if the s2i binary is not present.
37+
- name: install s2i binary
38+
run: |
39+
echo ===== Installing s2i from ${{ env.S2I_URL }} =====
40+
mkdir /tmp/s2i/ && cd /tmp/s2i/
41+
wget ${{ env.S2I_URI }}
42+
tar xvf source-to-image*.gz
43+
sudo mv s2i /usr/bin
44+
which s2i
45+
s2i version
46+
3447
- name: Behave Tests
3548
run: |
3649
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate

.github/workflows/ubi8-openjdk-8-runtime.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ jobs:
3131
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate
3232
cekit -v --descriptor ubi8-openjdk-8-runtime.yaml build docker
3333
docker image ls
34+
35+
# even though we don't run any S2I tests for the runtime images, the test suite
36+
# will fail to start if the s2i binary is not present.
37+
- name: install s2i binary
38+
run: |
39+
echo ===== Installing s2i from ${{ env.S2I_URL }} =====
40+
mkdir /tmp/s2i/ && cd /tmp/s2i/
41+
wget ${{ env.S2I_URI }}
42+
tar xvf source-to-image*.gz
43+
sudo mv s2i /usr/bin
44+
which s2i
45+
s2i version
46+
3447
- name: Behave Tests
3548
run: |
3649
. ~/cekit${{ env.CEKIT_VERSION }}/bin/activate

0 commit comments

Comments
 (0)