From fba177b6f2c7424aa6c97917f69119c40316fa93 Mon Sep 17 00:00:00 2001 From: hburn7 Date: Sat, 11 May 2024 11:57:24 -0400 Subject: [PATCH] Add restart always to docker run --- .github/workflows/prod-deploy.yml | 2 +- .github/workflows/staging-deploy.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prod-deploy.yml b/.github/workflows/prod-deploy.yml index e4bed9b..0124f2e 100644 --- a/.github/workflows/prod-deploy.yml +++ b/.github/workflows/prod-deploy.yml @@ -65,4 +65,4 @@ jobs: docker pull stagecodes/otr-web-prod:latest docker stop otr-web-prod || true docker rm otr-web-prod || true - docker run -d -p 3000:3000 --name otr-web-prod --env-file ~/otr-web/.env stagecodes/otr-web-prod:latest \ No newline at end of file + docker run -d -p 3000:3000 --restart always --name otr-web-prod --env-file ~/otr-web/.env stagecodes/otr-web-prod:latest \ No newline at end of file diff --git a/.github/workflows/staging-deploy.yml b/.github/workflows/staging-deploy.yml index 9a6d5d2..3e0180f 100644 --- a/.github/workflows/staging-deploy.yml +++ b/.github/workflows/staging-deploy.yml @@ -70,4 +70,4 @@ jobs: docker pull stagecodes/otr-web-staging:latest docker stop otr-web-staging || true docker rm otr-web-staging || true - docker run -d -p 3000:3000 --name otr-web-staging --env-file ~/otr-web/.env stagecodes/otr-web-staging:latest \ No newline at end of file + docker run -d -p 3000:3000 --restart always --name otr-web-staging --env-file ~/otr-web/.env stagecodes/otr-web-staging:latest \ No newline at end of file