Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 28d23f9

Browse files
committed
ci(docker): fixed it fr this time
1 parent 93e6140 commit 28d23f9

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,9 @@ jobs:
5858
steps:
5959
- name: Backup Container Logs
6060
run: |
61-
# Get today's date and time
62-
current_date_time=$(date +"%Y-%m-%d_%H-%M-%S")
63-
64-
# Copy the folder from the Docker container to the host
65-
docker cp $(docker ps -alq):/logs/ .
66-
cp -r logs/ ~/console-logs/interchat-logs-$current_date_time
67-
68-
- name: Remove old containers
69-
run: docker stop $(docker ps -a -q) && docker rm $(sudo docker ps -a -q)
61+
docker cp $(docker ps -alq):/src/logs .
62+
cp -r logs/ ~/console-logs/interchat-logs-$(date +"%Y-%m-%d_%H-%M-%S")
63+
- name: Remove old containers and images
64+
run: sudo docker rm $(docker ps -a -q) && sudo docker rmi $(docker images -q)
7065
- name: Run latest image
7166
run: sudo docker run -d --env-file ~/important/interchat-env ghcr.io/discord-interchat/interchat

0 commit comments

Comments
 (0)