Skip to content

Commit 1379a96

Browse files
committed
restart
1 parent 2b6fb07 commit 1379a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
echo "Deploying to ${{ env.DEPLOY_DIR }}..."
4343
4444
cd ${{ env.DEPLOY_DIR }}
45-
45+
4646
echo "Pulling latest changes..."
4747
git pull origin ${{ github.ref_name }}
4848
@@ -57,5 +57,5 @@ jobs:
5757
docker build -t ${{ env.IMAGE_NAME }} .
5858
5959
echo "Starting new container..."
60-
docker run -d --name ${{ env.CONTAINER_NAME }} -p ${{ env.HOST_PORT }}:3000 ${{ env.IMAGE_NAME }}
60+
docker run -d --name ${{ env.CONTAINER_NAME }} -p ${{ env.HOST_PORT }}:3000 --restart unless-stopped ${{ env.IMAGE_NAME }}
6161
EOF

0 commit comments

Comments
 (0)