test: download s2i when it is not available. #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: [ "8.0", "9.0" ] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Download s2i | |
run: | | |
set -euo pipefail | |
mkdir source-to-image | |
pushd source-to-image | |
wget --no-verbose https://github.com/openshift/source-to-image/releases/download/v1.4.0/source-to-image-v1.4.0-d3544c7e-linux-amd64.tar.gz | |
tar xf source-to-image-v1.4.0-d3544c7e-linux-amd64.tar.gz | |
popd | |
- name: Print Diagnostics | |
run: | | |
PATH=$PATH:$(pwd)/source-to-image/ | |
uname -a | |
cat /etc/os-release | |
docker --version | |
podman --version | |
s2i version | |
- name: Build | |
run: | | |
PATH=$PATH:$(pwd)/source-to-image/ | |
./build.sh --ci ${{ matrix.version }} |