Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
printSANO committed Jan 7, 2025
1 parent 363c55b commit 478b6df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ jobs:
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PASSWORD }}
script: |
cat log_file.txt
if grep -q "task: non-zero exit (1)" /home/ubuntu/log_file.txt; then
echo "FAILED_STEP=${{ github.event.inputs.image_name }}" >> "$GITHUB_ENV"
echo "FAILED_STEP=${{ github.event.inputs.image_name }}" >> $GITHUB_ENV
elif grep -q failure /home/ubuntu/log_file.txt; then
echo "FAILED_STEP=${{ github.event.inputs.image_name }}" >> $GITHUB_ENV
fi
rm -f /home/ubuntu/nest-stack.yml
rm -f /home/ubuntu/parser-stack.yml
Expand Down
2 changes: 1 addition & 1 deletion scale_nest.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
set -e
timeout 120s docker service scale techeerzip_nest=1
timeout 60s docker service scale techeerzip_nest=1

0 comments on commit 478b6df

Please sign in to comment.