retry on fail

This commit is contained in:
smf
2024-03-21 23:42:26 +08:00
parent 22a238747c
commit 4fb98580f8

View File

@@ -82,9 +82,13 @@ jobs:
cat .env.version
- name: Deploy to Dev Host on pr
uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
uses: Wandalen/wretry.action@v2
if: ${{ github.event_name == 'pull_request' }}
with:
attempt_limit: 3
attempt_delay: 5000
action: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
with: |
remote_docker_host: ${{ secrets.DEV_DEPLOY_HOST }}
remote_docker_port: ${{ secrets.DEV_DEPLOY_PORT }}
remote_docker_user: ${{ secrets.DEV_DEPLOY_USER }}
@@ -101,9 +105,13 @@ jobs:
docker_registry_password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Deploy to Deploy Host on other event
uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
uses: Wandalen/wretry.action@v2
if: ${{ ! ( github.event_name == 'pull_request' ) }}
with:
attempt_limit: 3
attempt_delay: 5000
action: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
with: |
remote_docker_host: ${{ secrets.DEPLOY_HOST }}
remote_docker_port: ${{ secrets.DEPLOY_PORT }}
remote_docker_user: ${{ secrets.DEPLOY_USER }}