Create action.yaml

This commit is contained in:
uazo 2021-07-07 13:05:03 +02:00 committed by GitHub
parent f0d7e38d26
commit ce8bbdc9ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,29 @@
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 }}"
IS_PRESENT=$(docker manifest inspect uazo/build-deps:$VERSION > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
echo "Image not found"
mkdir build-repo
pushd build-repo/
git clone https://github.com/uazo/bromite-buildtools
cd bromite-buildtools/images/build-deps/
docker build -t uazo/build-deps:$VERSION --progress plain --build-arg .
popd
rm -rf build-repo
fi