From bba1a22a93f1fec1b7183c28a83f156a6633bd6a Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 7 Jan 2025 09:46:58 -0800 Subject: [PATCH] test: stopping on error --- .github/workflows/cd.yml | 4 ++++ scale_crawler.sh | 2 +- scale_nest.sh | 2 +- scale_parser.sh | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5f81653..222891e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -46,6 +46,8 @@ jobs: - name: Deploy to Server id: deploy uses: appleboy/ssh-action@v1.1.0 + continue-on-error: false + script_stop: true with: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} @@ -105,6 +107,8 @@ jobs: if: ${{ github.event.inputs.replicas }} == "1" id: scale_down uses: appleboy/ssh-action@v1.1.0 + continue-on-error: false + script_stop: true with: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} diff --git a/scale_crawler.sh b/scale_crawler.sh index bceb527..d3c8cb3 100644 --- a/scale_crawler.sh +++ b/scale_crawler.sh @@ -1,3 +1,3 @@ #!/bin/bash - +set -e docker service scale techeerzip_crawler=1 \ No newline at end of file diff --git a/scale_nest.sh b/scale_nest.sh index ebb900b..9c534c0 100644 --- a/scale_nest.sh +++ b/scale_nest.sh @@ -1,3 +1,3 @@ #!/bin/bash - +set -e timeout 60s docker service scale techeerzip_nest=1 \ No newline at end of file diff --git a/scale_parser.sh b/scale_parser.sh index 808129e..750c2e6 100644 --- a/scale_parser.sh +++ b/scale_parser.sh @@ -1,3 +1,3 @@ #!/bin/bash - +set -e docker service scale techeerzip_parser=1 \ No newline at end of file