33 lines
1.0 KiB
YAML
Raw Normal View History

2021-07-07 12:35:30 +02:00
name: 'Prepare Chromium Sources Image'
description: 'Check and build chromium source image by version'
inputs:
version:
description: 'Chromium Version (example 91.0.4472.146)'
required: true
runs:
using: "composite"
steps:
2021-07-07 13:02:18 +02:00
- name: Checking image for "${{ inputs.version }}"
2021-07-07 12:35:30 +02:00
shell: bash
run: |
VERSION="${{ inputs.version }}"
2021-07-11 12:58:46 +02:00
IS_PRESENT=$(docker inspect --type=image uazo/chromium:$VERSION > /dev/null ; echo $?)
2021-07-07 12:57:37 +02:00
if [ $IS_PRESENT -ne "0" ]; then
2021-07-11 12:58:46 +02:00
IS_PRESENT=$(docker manifest inspect uazo/chromium:$VERSION > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
echo "Image not found"
2021-07-07 12:35:30 +02:00
2021-07-11 12:58:46 +02:00
mkdir chr-source
pushd chr-sourced/
2021-07-07 12:35:30 +02:00
2021-07-11 12:58:46 +02:00
git clone https://github.com/uazo/bromite-buildtools
cd bromite-buildtools/images/chr-source/
2021-07-11 14:56:29 +02:00
DOCKER_BUILDKIT=1 docker build -t uazo/chromium:$VERSION --progress plain --build-arg VERSION=$VERSION .
2021-07-07 12:35:30 +02:00
2021-07-11 12:58:46 +02:00
popd
rm -rf chr-source
fi
2021-07-07 12:35:30 +02:00
fi