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,47 +82,39 @@ 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 remote_docker_host: ${{ secrets.DEV_DEPLOY_HOST }}
attempt_delay: 5000 remote_docker_port: ${{ secrets.DEV_DEPLOY_PORT }}
action: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local remote_docker_user: ${{ secrets.DEV_DEPLOY_USER }}
with: | ssh_private_key: ${{ secrets.DEV_SSH_PRIVATE_KEY }}
remote_docker_host: ${{ secrets.DEV_DEPLOY_HOST }} ssh_proxy_cmd: ${{ secrets.DEV_SSH_PROXY_CMD }}
remote_docker_port: ${{ secrets.DEV_DEPLOY_PORT }} deploy_path: ${{ secrets.DEV_WORKING_DIRECTORY }}
remote_docker_user: ${{ secrets.DEV_DEPLOY_USER }} stack_file_name: ${{ inputs.stack_file_name }}
ssh_private_key: ${{ secrets.DEV_SSH_PRIVATE_KEY }} env_file_name: ${{ inputs.env_file_name }}
ssh_proxy_cmd: ${{ secrets.DEV_SSH_PROXY_CMD }} args: ${{ inputs.args }}
deploy_path: ${{ secrets.DEV_WORKING_DIRECTORY }} docker_prune: ${{ inputs.docker_prune }}
stack_file_name: ${{ inputs.stack_file_name }} pull_images_first: ${{ inputs.pull_images_first }}
env_file_name: ${{ inputs.env_file_name }} docker_registry_uri: ${{ secrets.REGISTRY_HOST }}
args: ${{ inputs.args }} docker_registry_username: ${{ secrets.REGISTRY_USERNAME }}
docker_prune: ${{ inputs.docker_prune }} docker_registry_password: ${{ secrets.REGISTRY_PASSWORD }}
pull_images_first: ${{ inputs.pull_images_first }}
docker_registry_uri: ${{ secrets.REGISTRY_HOST }}
docker_registry_username: ${{ secrets.REGISTRY_USERNAME }}
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 remote_docker_host: ${{ secrets.DEPLOY_HOST }}
attempt_delay: 5000 remote_docker_port: ${{ secrets.DEPLOY_PORT }}
action: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local remote_docker_user: ${{ secrets.DEPLOY_USER }}
with: | ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
remote_docker_host: ${{ secrets.DEPLOY_HOST }} ssh_proxy_cmd: ${{ secrets.SSH_PROXY_CMD }}
remote_docker_port: ${{ secrets.DEPLOY_PORT }} deploy_path: ${{ secrets.WORKING_DIRECTORY }}
remote_docker_user: ${{ secrets.DEPLOY_USER }} stack_file_name: ${{ inputs.stack_file_name }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} env_file_name: ${{ inputs.env_file_name }}
ssh_proxy_cmd: ${{ secrets.SSH_PROXY_CMD }} args: ${{ inputs.args }}
deploy_path: ${{ secrets.WORKING_DIRECTORY }} docker_prune: ${{ inputs.docker_prune }}
stack_file_name: ${{ inputs.stack_file_name }} pull_images_first: ${{ inputs.pull_images_first }}
env_file_name: ${{ inputs.env_file_name }} docker_registry_uri: ${{ secrets.REGISTRY_HOST }}
args: ${{ inputs.args }} docker_registry_username: ${{ secrets.REGISTRY_USERNAME }}
docker_prune: ${{ inputs.docker_prune }} docker_registry_password: ${{ secrets.REGISTRY_PASSWORD }}
pull_images_first: ${{ inputs.pull_images_first }}
docker_registry_uri: ${{ secrets.REGISTRY_HOST }}
docker_registry_username: ${{ secrets.REGISTRY_USERNAME }}
docker_registry_password: ${{ secrets.REGISTRY_PASSWORD }}