Skip to content

Commit

Permalink
Merge pull request #1145 from dm3-org/enableTestingStateReset
Browse files Browse the repository at this point in the history
re-enable state reset on deploy to testing
  • Loading branch information
AlexNi245 authored Aug 13, 2024
2 parents a47010b + a17aaa6 commit 739dbfe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ jobs:
ssh -i ./ssh-key app@${{ vars.HOST_DOMAIN }} "\
cd dm3 && ls |grep -E 'dm3-.*tar' | xargs --no-run-if-empty -L 1 docker load -i; \
rm dm3-*.tar || true"
# - name: Reset state of testing environment
# run: |
# if [ $environment_name == "testing" ]; then
# ssh -i ./ssh-key root@${{ vars.HOST_DOMAIN }} "\
# cd ${{ vars.PERSISTENCE_DIRECTORY }}/db && rm -r * || true;
# cd ${{ vars.PERSISTENCE_DIRECTORY }}/storage && rm -r * || true"
# fi
- name: Reset state of testing environment
run: |
if [ $environment_name == "testing" ]; then
ssh -i ./ssh-key root@${{ vars.HOST_DOMAIN }} "\
cd ${{ vars.PERSISTENCE_DIRECTORY }}/db && rm -r * || true;
cd ${{ vars.PERSISTENCE_DIRECTORY }}/storage && rm -r * || true"
fi
- name: Configure Firewall
run: |
ssh -i ./ssh-key root@${{ vars.HOST_DOMAIN }} "\
Expand Down

0 comments on commit 739dbfe

Please sign in to comment.