This commit is contained in:
@@ -81,16 +81,7 @@ jobs:
|
||||
docker stop devops-platform
|
||||
docker rm devops-platform
|
||||
|
||||
if docker run -d \
|
||||
--name devops-platform \
|
||||
--restart unless-stopped \
|
||||
--read-only \
|
||||
--cap-drop=ALL \
|
||||
--security-opt=no-new-privileges:true \
|
||||
--memory=256m \
|
||||
--cpus=0.5 \
|
||||
-p 127.0.0.1:8000:8000 \
|
||||
"$IMAGE"; then
|
||||
if IMAGE="$IMAGE" docker compose up -d --no-build app; then
|
||||
echo "New container started"
|
||||
else
|
||||
echo "Failed to start new container; restoring old image"
|
||||
|
||||
Reference in New Issue
Block a user