Skip to content

Commit

Permalink
chore: Remove build system tainting now we have ci cmds in comments. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye authored Sep 28, 2023
1 parent d6f903d commit 2040335
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion build-system/scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ cd $BUILD_DIR
# If we have previously successful commit, we can early out if nothing relevant has changed since.
if [[ $FORCE_BUILD == 'false' ]] && check_rebuild cache-"$CONTENT_HASH" $REPOSITORY; then
echo "No rebuild necessary."
untag_remote_image $REPOSITORY tainted
exit 0
fi

Expand Down
6 changes: 0 additions & 6 deletions build-system/scripts/check_rebuild
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ REPOSITORY=$2
[[ "$COMMIT_MESSAGE" == *"[ci rebuild]"* ]] && exit 1

if ! image_exists $REPOSITORY $TAG; then
echo "Rebuild required."
exit 1
elif image_exists $REPOSITORY tainted; then
# If a tainted tag exists, remove it and exit with failure to rebuild.
echo "$REPOSITORY has been tainted. Will rebuild."
exit 1
else
echo "No rebuild required."
exit 0
fi

0 comments on commit 2040335

Please sign in to comment.