From 08915c1bc15d8427e52abc2313fc78b999ae3907 Mon Sep 17 00:00:00 2001 From: Aleksey Konstantinov Date: Tue, 19 Mar 2024 15:09:05 +0300 Subject: [PATCH] Added conditional docker layer caching (release flow) --- .github/workflows/build-release-image.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-release-image.yml b/.github/workflows/build-release-image.yml index d052a53..9ede658 100644 --- a/.github/workflows/build-release-image.yml +++ b/.github/workflows/build-release-image.yml @@ -12,6 +12,10 @@ on: required: false type: string default: . + use_docker_cache: + required: false + type: boolean + default: true jobs: release: @@ -21,7 +25,9 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: satackey/action-docker-layer-caching@46d2c640b1d8ef50d185452ad6fb324e6bd1d052 + - name: docker-layer-caching + if: ${{ inputs.use_docker_cache }} + uses: satackey/action-docker-layer-caching@46d2c640b1d8ef50d185452ad6fb324e6bd1d052 continue-on-error: true - uses: actions/cache@v4 with: