Skip to content

Commit d9c4c66

Browse files
committed
docker: avoid past creates being scheduled during first start
1 parent ec69181 commit d9c4c66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ cratesfyi database update-release-activity
3232

3333
if ! [ -d "${CRATESFYI_PREFIX}/crates.io-index/.git" ]; then
3434
git clone https://github.com/rust-lang/crates.io-index "${CRATESFYI_PREFIX}/crates.io-index"
35+
# Prevent new crates built before the container creation to be built
36+
git --git-dir="$CRATESFYI_PREFIX/crates.io-index/.git" branch crates-index-diff_last-seen
3537
fi
3638

3739
cratesfyi "$@"

0 commit comments

Comments
 (0)