From 8848114a261ad9284a36b754bab51d88e5452478 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Sat, 17 Feb 2024 20:35:11 +0900 Subject: [PATCH] Updated building images workflow --- .github/workflows/images_build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/images_build.yml b/.github/workflows/images_build.yml index 3f6814b1c..8018c388c 100644 --- a/.github/workflows/images_build.yml +++ b/.github/workflows/images_build.yml @@ -342,6 +342,10 @@ jobs: cache_to=$(printf '%s,' "${cache_to[@]}") cache_to="${cache_to%,}" + for i in "${!cache_from[@]}"; do + echo "cache_$i_from=${cache_from[$i]}" >> $GITHUB_OUTPUT + done + echo "cache_from=$cache_from" >> $GITHUB_OUTPUT echo "cache_to=$cache_to" >> $GITHUB_OUTPUT @@ -365,7 +369,7 @@ jobs: labels: | org.opencontainers.image.revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} - cache-from: ${{ steps.cache_data.outputs.cache_from }} + cache-from: ${{ steps.cache_data.outputs.cache_*_from }} cache-to: ${{ steps.cache_data.outputs.cache_to }} - name: Sign the images with GitHub OIDC Token