Skip to content

Commit 05e9d71

Browse files
committed
persist log across disk (docker + VM)
1 parent e75a895 commit 05e9d71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,10 @@ jobs:
273273
. 2>&1 | while IFS= read -r line; do log "$line"; done
274274
275275
log "Running Docker image in detached mode..."
276-
docker run -d --gpus all "$DOCKER_IMAGE_NAME" 2>&1 | while IFS= read -r line; do log "$line"; done
276+
docker run -d \
277+
-v $HOME/logs:/src/logs \
278+
--gpus all \
279+
--name "$DOCKER_IMAGE_NAME" 2>&1 | while IFS= read -r line; do log "$line"; done
277280
278281
log "✓ Cloud deployment done successfully"
279282

0 commit comments

Comments
 (0)