#!/bin/bash set -euxo pipefail function image_tag() { name="$1" echo "ghcr.io/${GITHUB_REPOSITORY:-nextcloud/neon}/$name" } function cache_build_args() { tag="$1" build_args=("--cache-from" "type=registry,ref=$tag") if [ -v GITHUB_REPOSITORY ]; then build_args+=( "--push" "--cache-to" "type=registry,ref=$tag,mode=max" ) else build_args+=("--load") fi echo "${build_args[*]}" }