Skip to content

Commit

Permalink
Only cache from main tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus authored Mar 15, 2022
1 parent 7536f5d commit be9e90e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ run() {
fi

for tag in "${tags[@]}"; do
build_args+=(
--cache-from "type=registry,ref=${tag}"
--tag "${tag}"
)
build_args+=(--tag "${tag}")
done

docker buildx build "${build_args[@]}" -f "${dockerfile}" --progress plain .
Expand Down

0 comments on commit be9e90e

Please sign in to comment.