Skip to content

Commit

Permalink
(ops): Removing image upon any update
Browse files Browse the repository at this point in the history
  • Loading branch information
Murithijoshua authored Feb 21, 2024
1 parent f46a27a commit a5174a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
cp /apps/configs/kvisual/.env "$deploy_dir/"
# Build and run Docker container
docker stop kvisual || true
docker rm kvisual || true
docker build -t kvisual:latest "$deploy_dir"
docker run -p 7008:5000 --name kvisual -d --restart always kvisual:latest
docker stop kvisual
docker rm -f kvisual
docker build --no-cache -t kvisual:latest "$deploy_dir"
docker run -p 7008:5000 --name kvisual -d --restart always --security-opt=no-new-privileges --log-opt max-size=10m \
--log-opt max-file=3 kvisual:latest

0 comments on commit a5174a8

Please sign in to comment.