Skip to content

Publish 2024.2.0 and 2024.1.0 Dockerfiles #505

Publish 2024.2.0 and 2024.1.0 Dockerfiles

Publish 2024.2.0 and 2024.1.0 Dockerfiles #505

name: Images build check
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions: read-all
jobs:
image_build:
strategy:
matrix:
os: [ubuntu-20.04]
image_os: [ubuntu20]
image_distribution: [runtime]
exclude:
- os: ubuntu-20.04
image_os: winserver2019
- os: windows-2019
image_os: centos7
- os: windows-2019
image_os: ubuntu20
- os: windows-2019
image_os: ubuntu20
runs-on: ${{ matrix.os }}
steps:
- name: Code checkout
uses: actions/checkout@v2
- name: Setting up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Setting up Python dependencies
if: ${{ always() }}
run: python -m pip install -r requirements.txt
- name: Build Linux image (runtime, latest release)
if: ${{ matrix.os == 'ubuntu-20.04' && ! startsWith(matrix.image_os, 'win') }}
run: python docker_openvino.py build --dist ${{ matrix.image_distribution }} -d cpu -d gpu -os ${{ matrix.image_os }}
- name: Build Windows image (runtime, latest release)
if: ${{ matrix.os == 'windows-2019' && startsWith(matrix.image_os, 'win') }}
run: python docker_openvino.py build --dist ${{ matrix.image_distribution }} -os ${{ matrix.image_os }}
- name: Checking resulting image
if: ${{ always() }}
run: docker images
- name: Collecting artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: logs
path: |
logs/
./*.html
./*.log