From 877081a41b24dbfa60abd2860042d3cbd66f8afe Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Wed, 7 Jul 2021 12:35:30 +0200 Subject: [PATCH] Create provide-chr-source.yaml --- images/provide-chr-source.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 images/provide-chr-source.yaml diff --git a/images/provide-chr-source.yaml b/images/provide-chr-source.yaml new file mode 100644 index 0000000..d6859e1 --- /dev/null +++ b/images/provide-chr-source.yaml @@ -0,0 +1,29 @@ +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: + - name: Checking for image "${{ inputs.version }}" + shell: bash + run: | + VERSION="${{ inputs.version }}" + IS_PRESENT=$(docker manifest inspect uazo/chromium:$VERSION > /dev/null ; echo $?) + if [[ $IS_PRESENT == "1" ]; then + echo "Image not found" + + mkdir chr-source + pushd chr-sourced/ + + git clone https://github.com/uazo/bromite-buildtools + cd bromite-buildtools/images/chr-source/ + docker build -t uazo/chromium:$VERSION --progress plain --build-arg VERSION=$VERSION . + + popd + rm -rf chr-source + fi