From 47220cb80a4eaa5af99797b4d36f12ec77203449 Mon Sep 17 00:00:00 2001 From: cytopia Date: Sun, 6 Nov 2022 17:39:29 +0100 Subject: [PATCH] Pull Base --- .github/workflows/docker-multistage-build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/docker-multistage-build.yml b/.github/workflows/docker-multistage-build.yml index 0d4f741..2ec53c0 100644 --- a/.github/workflows/docker-multistage-build.yml +++ b/.github/workflows/docker-multistage-build.yml @@ -35,6 +35,11 @@ on: description: 'Dertermines whether we upload the artifact not.' required: true type: boolean + pull_base_image: + description: 'Pull Docker base image before building?.' + required: false + default: false + type: boolean jobs: # ----------------------------------------------------------------------------------------------- @@ -123,6 +128,13 @@ jobs: # ------------------------------------------------------------ # Build # ------------------------------------------------------------ + - name: Pull + uses: cytopia/shell-command-retry-action@v0.1.3 + with: + command: | + make docker-pull-base-image VERSION=${{ matrix.version }} STAGE=${{ inputs.stage }} FLAVOUR=${{ matrix.flavour }} ARCH=${{ matrix.arch }} + if: ${{ inputs.pull_base_image }} + - name: Build uses: cytopia/shell-command-retry-action@v0.1.3 with: