From 33f4a248f23b2e5bc9c893ba1f53a1364c636c3d Mon Sep 17 00:00:00 2001 From: Tobiah Date: Sat, 18 Mar 2023 12:54:32 -0500 Subject: [PATCH] fix(ci): repair deployment process --- .github/workflows/ci.yaml | 2 +- .github/workflows/release.yaml | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 66a82a89e..cba5c92ea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js uses: actions/setup-node@v3 with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6ebd6c5dc..43422958e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,10 +8,10 @@ jobs: semantic-release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: persist-credentials: false - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: '14' - name: Semantic Release @@ -63,7 +63,10 @@ jobs: DEPLOY_BRANCH: ${{ secrets.DEPLOY_BRANCH }} - name: Stop Bot Process if: ${{ steps.release.outputs.release == 'yes' }} - run: ssh bot 'source ~/.zshrc && cd ~/services/genesis-docker && { docker-compose -f docker-compose.prod.yaml down } || echo "Nothing to stop"' - - name: Update & Start Bot & Notifiers + run: ssh bot 'source ~/.zshrc && cd ~/services/genesis-docker && { make -f docker.Makefile down_prod } || echo "Nothing to stop"' + - name: Update Containers if: ${{ steps.release.outputs.release == 'yes' }} run: ssh bot 'source ~/.zshrc && cd ~/services/genesis-docker && make -f docker.Makefile submod bot notifier' + - name: Restart Containers + if: ${{ steps.release.outputs.release == 'yes' }} + run: ssh bot 'source ~/.zshrc && cd ~/services/genesis-docker && make -f docker.Makefile up_prod'