This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
STAGED_FILES=$(git diff-index HEAD --name-only --cached) | |
if [[ -z $STAGED_FILES ]] | |
then | |
exit # no staged files, no need to run rubocop | |
fi | |
# Checks if any staged files have unstaged changes | |
# otherwise rubocop isn't running on what is actually |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require 'platform-api' | |
# Adapted from GitLab | |
# | |
# Docs: https://docs.gitlab.com/ee/administration/operations/sidekiq_memory_killer.html | |
# Source: https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/lib/gitlab/sidekiq_daemon/memory_killer.rb | |
class Sidekiq::Middleware::MemoryKiller | |
# Default the RSS limit to 0, meaning the MemoryKiller is disabled (kilobytes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
release: bin/release | |
web: ... | |
worker: ... |