retry on fail
This commit is contained in:
68
.github/workflows/deploy_compose.yml
vendored
68
.github/workflows/deploy_compose.yml
vendored
@@ -82,39 +82,47 @@ jobs:
|
|||||||
cat .env.version
|
cat .env.version
|
||||||
|
|
||||||
- name: Deploy to Dev Host on pr
|
- 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' }}
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
remote_docker_host: ${{ secrets.DEV_DEPLOY_HOST }}
|
attempt_limit: 3
|
||||||
remote_docker_port: ${{ secrets.DEV_DEPLOY_PORT }}
|
attempt_delay: 5000
|
||||||
remote_docker_user: ${{ secrets.DEV_DEPLOY_USER }}
|
action: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
|
||||||
ssh_private_key: ${{ secrets.DEV_SSH_PRIVATE_KEY }}
|
with: |
|
||||||
ssh_proxy_cmd: ${{ secrets.DEV_SSH_PROXY_CMD }}
|
remote_docker_host: ${{ secrets.DEV_DEPLOY_HOST }}
|
||||||
deploy_path: ${{ secrets.DEV_WORKING_DIRECTORY }}
|
remote_docker_port: ${{ secrets.DEV_DEPLOY_PORT }}
|
||||||
stack_file_name: ${{ inputs.stack_file_name }}
|
remote_docker_user: ${{ secrets.DEV_DEPLOY_USER }}
|
||||||
env_file_name: ${{ inputs.env_file_name }}
|
ssh_private_key: ${{ secrets.DEV_SSH_PRIVATE_KEY }}
|
||||||
args: ${{ inputs.args }}
|
ssh_proxy_cmd: ${{ secrets.DEV_SSH_PROXY_CMD }}
|
||||||
docker_prune: ${{ inputs.docker_prune }}
|
deploy_path: ${{ secrets.DEV_WORKING_DIRECTORY }}
|
||||||
pull_images_first: ${{ inputs.pull_images_first }}
|
stack_file_name: ${{ inputs.stack_file_name }}
|
||||||
docker_registry_uri: ${{ secrets.REGISTRY_HOST }}
|
env_file_name: ${{ inputs.env_file_name }}
|
||||||
docker_registry_username: ${{ secrets.REGISTRY_USERNAME }}
|
args: ${{ inputs.args }}
|
||||||
docker_registry_password: ${{ secrets.REGISTRY_PASSWORD }}
|
docker_prune: ${{ inputs.docker_prune }}
|
||||||
|
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: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
|
uses: Wandalen/wretry.action@v2
|
||||||
if: ${{ ! ( github.event_name == 'pull_request' ) }}
|
if: ${{ ! ( github.event_name == 'pull_request' ) }}
|
||||||
with:
|
with:
|
||||||
remote_docker_host: ${{ secrets.DEPLOY_HOST }}
|
attempt_limit: 3
|
||||||
remote_docker_port: ${{ secrets.DEPLOY_PORT }}
|
attempt_delay: 5000
|
||||||
remote_docker_user: ${{ secrets.DEPLOY_USER }}
|
action: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
with: |
|
||||||
ssh_proxy_cmd: ${{ secrets.SSH_PROXY_CMD }}
|
remote_docker_host: ${{ secrets.DEPLOY_HOST }}
|
||||||
deploy_path: ${{ secrets.WORKING_DIRECTORY }}
|
remote_docker_port: ${{ secrets.DEPLOY_PORT }}
|
||||||
stack_file_name: ${{ inputs.stack_file_name }}
|
remote_docker_user: ${{ secrets.DEPLOY_USER }}
|
||||||
env_file_name: ${{ inputs.env_file_name }}
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
args: ${{ inputs.args }}
|
ssh_proxy_cmd: ${{ secrets.SSH_PROXY_CMD }}
|
||||||
docker_prune: ${{ inputs.docker_prune }}
|
deploy_path: ${{ secrets.WORKING_DIRECTORY }}
|
||||||
pull_images_first: ${{ inputs.pull_images_first }}
|
stack_file_name: ${{ inputs.stack_file_name }}
|
||||||
docker_registry_uri: ${{ secrets.REGISTRY_HOST }}
|
env_file_name: ${{ inputs.env_file_name }}
|
||||||
docker_registry_username: ${{ secrets.REGISTRY_USERNAME }}
|
args: ${{ inputs.args }}
|
||||||
docker_registry_password: ${{ secrets.REGISTRY_PASSWORD }}
|
docker_prune: ${{ inputs.docker_prune }}
|
||||||
|
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 }}
|
||||||
Reference in New Issue
Block a user