bromite-buildtools/images/build-deps/action.yaml

33 lines
1.0 KiB
YAML
Raw Normal View History

2021-07-07 16:35:03 +05:30
name: 'Prepare Build Deps Image'
description: 'Check and build build deps image by version'
inputs:
version:
description: 'Chromium Version (example 91.0.4472.146)'
required: true
runs:
using: "composite"
steps:
- name: Checking image for "${{ inputs.version }}"
shell: bash
run: |
VERSION="${{ inputs.version }}"
2021-07-11 16:29:31 +05:30
IS_PRESENT=$(docker inspect --type=image uazo/build-deps:$VERSION > /dev/null ; echo $?)
2021-07-07 16:35:03 +05:30
if [ $IS_PRESENT -ne "0" ]; then
2021-07-11 16:29:31 +05:30
IS_PRESENT=$(docker manifest inspect uazo/build-deps:$VERSION > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
echo "Image not found"
2021-07-07 16:35:03 +05:30
2021-07-11 16:29:31 +05:30
mkdir build-repo
pushd build-repo/
2021-07-07 16:35:03 +05:30
2021-07-11 16:29:31 +05:30
git clone https://github.com/uazo/bromite-buildtools
cd bromite-buildtools/images/build-deps/
2021-07-11 18:23:05 +05:30
DOCKER_BUILDKIT=1 docker build -t uazo/build-deps:$VERSION --progress plain .
2021-07-07 16:35:03 +05:30
2021-07-11 16:29:31 +05:30
popd
rm -rf build-repo
fi
2021-07-07 16:35:03 +05:30
fi