Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 30a7250

Browse files
casthewizCassidy Schaufele
authored andcommitted
Update deploy-production-ec2.yml
1 parent 7d8c971 commit 30a7250

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/deploy-production-ec2.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ jobs:
2121
ssh -l ubuntu ${{ secrets.PRODUCTION_HOST_1}} -T '
2222
cd docker/docs-worker-pool
2323
git fetch origin
24+
git checkout master
25+
git pull
2426
git checkout $(git describe --tags)
2527
sudo docker system prune -af
2628
sudo docker build --no-cache --tag production .
2729
sudo docker stop $(sudo docker ps -a -q)
2830
sudo sh rundocker.sh
31+
sudo sh rundocker.sh
2932
'
3033
deploy-production-2:
3134
if: startsWith(github.ref, 'refs/tags/v')
@@ -44,10 +47,13 @@ jobs:
4447
ssh -l ubuntu ${{ secrets.PRODUCTION_HOST_2}} -T '
4548
cd docker/docs-worker-pool
4649
git fetch origin
50+
git checkout master
51+
git pull
4752
git checkout $(git describe --tags)
4853
sudo docker system prune -af
4954
sudo docker build --no-cache --tag production .
5055
sudo docker stop $(sudo docker ps -a -q)
5156
sudo sh rundocker.sh
57+
sudo sh rundocker.sh
5258
'
5359

0 commit comments

Comments
 (0)