diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 390603bb6..201a82e30 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,7 +3,7 @@ name: Build dev images on: push: branches: - - main + - "bugfix/build-dev" jobs: docker: diff --git a/scripts/build_components.sh b/scripts/build_components.sh index f09c72613..19d885b7f 100755 --- a/scripts/build_components.sh +++ b/scripts/build_components.sh @@ -40,6 +40,7 @@ for dir in "$component_dir"/*/; do BASENAME=${dir%/} BASENAME=${BASENAME##*/} + full_image_names=() echo "Tagging image with following tags:" for tag in "${tags[@]}"; do full_image_name=ghcr.io/${namespace}/${BASENAME}:${tag} @@ -62,8 +63,8 @@ for dir in "$component_dir"/*/; do # Add cache arguments if caching is enabled if [ "$caching" = true ] ; then - echo "Caching from/to ${cache_name}" cache_name=ghcr.io/${namespace}/${BASENAME}:build-cache + echo "Caching from/to ${cache_name}" args+=(--cache-to "type=registry,ref=${cache_name}") args+=(--cache-from "type=registry,ref=${cache_name}") fi