retry on fail
This commit is contained in:
12
.github/workflows/deploy_compose.yml
vendored
12
.github/workflows/deploy_compose.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user