revert retry on fail
This commit is contained in:
smf
2024-03-21 23:54:07 +08:00
parent 4fb98580f8
commit 2e7b624189

View File

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