Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! Cache Docker images …
Browse files Browse the repository at this point in the history
…on GitHub container registry
  • Loading branch information
TheAssassin committed Dec 26, 2024
1 parent dbbd26c commit 0745eeb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ci/build-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ default_branch_tag="$(cut -d: -f1 <<<"$docker_tag"):$(echo "${GITHUB_DEFAULT_BRA
extra_build_args=()

if [[ "${GITHUB_ACTIONS:-}" != "" ]]; then
echo "Building on GitHub actions, pushing cache"
echo "Building on GitHub actions, storing cache on registry"
extra_build_args+=(
--output "type=registry,ref=${docker_tag}"
--push
--cache-to "type=registry,ref=${docker_tag}"
)
else
echo "Local build, not pushing cache"
echo "Local build, not storing cache on registry"
fi

# building local image to "cache" installed dependencies for subsequent builds
Expand Down

0 comments on commit 0745eeb

Please sign in to comment.