Skip to content

Commit 915c871

Browse files
committed
feat: removing previous images to save space on disk
1 parent c648fa5 commit 915c871

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/deploy-pre.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ jobs:
4444
4545
# Navigate to deployment directory
4646
cd /opt/summoners-sync/api-gateway
47-
48-
# Load the Docker image
49-
docker load < api-gateway.tar.gz
50-
47+
5148
# Stop and remove existing container if it exists
5249
docker stop api-gateway || true
5350
docker rm api-gateway || true
51+
docker rmi api-gateway || true
52+
53+
# Load the Docker image
54+
docker load < api-gateway.tar.gz
5455
5556
# Run the new container
5657
docker run -d --name api-gateway --restart always api-gateway:latest

0 commit comments

Comments
 (0)