From ce8bbdc9ad13b1f728e84ea913c01c3b317ceda6 Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Wed, 7 Jul 2021 13:05:03 +0200 Subject: [PATCH] Create action.yaml --- images/build-deps/action.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 images/build-deps/action.yaml diff --git a/images/build-deps/action.yaml b/images/build-deps/action.yaml new file mode 100644 index 0000000..b0e4c2b --- /dev/null +++ b/images/build-deps/action.yaml @@ -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