Skip to content

Commit 65420ca

Browse files
committed
fix deploy
1 parent 17e9e4e commit 65420ca

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/backend.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
key: ${{ secrets.SERVER_SSH_KEY }}
2424
script: |
2525
cd /opt/CookieLess/backend
26+
git fetch --all && git reset --hard origin/main
2627
ansible-playbook ansible/playbook.yml \
2728
--extra-vars "MONGO_INITDB_ROOT_USERNAME=${{ secrets.MONGO_INITDB_ROOT_USERNAME }} \
2829
MONGO_INITDB_ROOT_PASSWORD=${{ secrets.MONGO_INITDB_ROOT_PASSWORD }} \

backend/ansible/playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
tasks:
1111

1212
- name: Update code from git
13-
command: git fetch --all && git reset --hard origin/main
13+
command: git pull
1414
args:
1515
chdir: /opt/CookieLess
1616

0 commit comments

Comments
 (0)