Skip to content

Commit 8b48a10

Browse files
committed
Add FOLLOW_LOGS variable to print everything via just logs
1 parent 5ad80df commit 8b48a10

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
- if: ${{ failure() }}
3838
name: Print logs
3939
run: |
40-
docker compose logs
40+
FOLLOW_LOGS='' just logs

justfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ COMPOSE_FILE := "--file=docker-compose.yml" + (
66
DC := "docker compose " + COMPOSE_FILE
77
RUN := DC + " run --rm"
88
RUN_WEB := RUN + " web"
9+
FOLLOW_LOGS := env("FOLLOW_LOGS", "-f")
910
set dotenv-load := false
1011
# Force just to hand down positional arguments so quoted arguments with spaces are
1112
# handled appropriately
@@ -42,7 +43,7 @@ down *args:
4243

4344
# Attach logs to all (or the specified) services
4445
logs *args:
45-
{{ DC }} logs -f {{ args }}
46+
{{ DC }} logs {{ FOLLOW_LOGS }} {{ args }}
4647

4748
# Pull all docker images
4849
pull:

0 commit comments

Comments
 (0)