-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01c6f95
commit 827c14b
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
gemfiles = $(shell find . -name Gemfile -maxdepth 5 | sort) | ||
lockfiles = $(foreach gemfile,$(gemfiles),$(gemfile).lock) | ||
GEMFILES ?= $(shell find . -name Gemfile -maxdepth 5 | sort) | ||
LOCKFILES ?= $(foreach GEMFILE,$(GEMFILES),$(GEMFILE).lock) | ||
|
||
.PHONY: build clean logs | ||
.PHONY: blue build clean global logs | ||
|
||
build: $(lockfiles) | ||
blue: | ||
terraform -chdir=$@ apply | ||
|
||
build: $(LOCKFILES) | ||
|
||
clean: | ||
find . -type d -name vendor | xargs rm -rf | ||
|
||
$(lockfiles): %.lock: % .ruby-version | ||
BUNDLE_APP_CONFIG=$(PWD)/.bundle bundle install --gemfile $< | ||
global: | ||
terraform -chdir=$@ apply | ||
|
||
logs: | ||
aws logs tail --follow $(shell aws logs describe-log-groups | jq -r '.logGroups[].logGroupName' | grep brutalismbot | fzf --no-info --reverse --sync --height 10%) | ||
|
||
$(LOCKFILES): %.lock: % .ruby-version | ||
BUNDLE_APP_CONFIG=$(PWD)/.bundle BUNDLE_GEMFILE=$< bundle update | ||
BUNDLE_APP_CONFIG=$(PWD)/.bundle BUNDLE_GEMFILE=$< bundle install |