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
|
||||
|
||||
- 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:
|
||||
remote_docker_host: ${{ secrets.DEV_DEPLOY_HOST }}
|
||||
remote_docker_port: ${{ secrets.DEV_DEPLOY_PORT }}
|
||||
remote_docker_user: ${{ secrets.DEV_DEPLOY_USER }}
|
||||
ssh_private_key: ${{ secrets.DEV_SSH_PRIVATE_KEY }}
|
||||
ssh_proxy_cmd: ${{ secrets.DEV_SSH_PROXY_CMD }}
|
||||
deploy_path: ${{ secrets.DEV_WORKING_DIRECTORY }}
|
||||
stack_file_name: ${{ inputs.stack_file_name }}
|
||||
env_file_name: ${{ inputs.env_file_name }}
|
||||
args: ${{ inputs.args }}
|
||||
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 }}
|
||||
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 }}
|
||||
ssh_private_key: ${{ secrets.DEV_SSH_PRIVATE_KEY }}
|
||||
ssh_proxy_cmd: ${{ secrets.DEV_SSH_PROXY_CMD }}
|
||||
deploy_path: ${{ secrets.DEV_WORKING_DIRECTORY }}
|
||||
stack_file_name: ${{ inputs.stack_file_name }}
|
||||
env_file_name: ${{ inputs.env_file_name }}
|
||||
args: ${{ inputs.args }}
|
||||
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
|
||||
uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
|
||||
uses: Wandalen/wretry.action@v2
|
||||
if: ${{ ! ( github.event_name == 'pull_request' ) }}
|
||||
with:
|
||||
remote_docker_host: ${{ secrets.DEPLOY_HOST }}
|
||||
remote_docker_port: ${{ secrets.DEPLOY_PORT }}
|
||||
remote_docker_user: ${{ secrets.DEPLOY_USER }}
|
||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
ssh_proxy_cmd: ${{ secrets.SSH_PROXY_CMD }}
|
||||
deploy_path: ${{ secrets.WORKING_DIRECTORY }}
|
||||
stack_file_name: ${{ inputs.stack_file_name }}
|
||||
env_file_name: ${{ inputs.env_file_name }}
|
||||
args: ${{ inputs.args }}
|
||||
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 }}
|
||||
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 }}
|
||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
ssh_proxy_cmd: ${{ secrets.SSH_PROXY_CMD }}
|
||||
deploy_path: ${{ secrets.WORKING_DIRECTORY }}
|
||||
stack_file_name: ${{ inputs.stack_file_name }}
|
||||
env_file_name: ${{ inputs.env_file_name }}
|
||||
args: ${{ inputs.args }}
|
||||
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