Skip to content

Commit

Permalink
fix(ci): repair deployment process
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Mar 18, 2023
1 parent 97f4ad5 commit 33f4a24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'

0 comments on commit 33f4a24

Please # to comment.