Skip to content

Commit

Permalink
chore: fix deploy configuration
Browse files Browse the repository at this point in the history
The server was unreachable, try specifying tcp6 protocol
  • Loading branch information
raphael0202 committed Aug 13, 2024
1 parent 677cd62 commit 07aaa8f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
echo "SSH_PROXY_HOST=ovh1.openfoodfacts.org" >> $GITHUB_ENV
echo "SSH_USERNAME=off" >> $GITHUB_ENV
echo "SSH_HOST=10.1.0.200" >> $GITHUB_ENV
echo "SSH_PROTOCOL=tcp" >> $GITHUB_ENV
echo "ROBOTOFF_INSTANCE=dev" >> $GITHUB_ENV
echo "ROBOTOFF_TLD=net" >> $GITHUB_ENV
echo "MONGO_URI=mongodb://10.1.0.200:27017" >> $GITHUB_ENV
Expand All @@ -41,7 +42,8 @@ jobs:
# First connect on the SSH proxy, using ipv6 address
echo "SSH_PROXY_HOST=osm45.openstreetmap.fr" >> $GITHUB_ENV
echo "SSH_USERNAME=off" >> $GITHUB_ENV
echo "SSH_HOST=10.3.0.200" >> $GITHUB_ENV
echo "SSH_PROTOCOL=tcp6" >> $GITHUB_ENV
echo "SSH_HOST=2a06:c484:5::200" >> $GITHUB_ENV
echo "ROBOTOFF_INSTANCE=prod" >> $GITHUB_ENV
echo "ROBOTOFF_TLD=org" >> $GITHUB_ENV
# use prod mongodb through stunnel
Expand Down Expand Up @@ -81,6 +83,7 @@ jobs:
proxy_host: ${{ env.SSH_PROXY_HOST }}
proxy_username: ${{ env.SSH_USERNAME }}
proxy_key: ${{ secrets.SSH_PRIVATE_KEY }}
protocol: ${{ env.SSH_PROTOCOL }}
script_stop: false
script: |
# Clone Git repository if not already there
Expand Down Expand Up @@ -111,6 +114,7 @@ jobs:
proxy_host: ${{ env.SSH_PROXY_HOST }}
proxy_username: ${{ env.SSH_USERNAME }}
proxy_key: ${{ secrets.SSH_PRIVATE_KEY }}
protocol: ${{ env.SSH_PROTOCOL }}
script_stop: false
script: |
# Go to repository directory
Expand Down Expand Up @@ -177,6 +181,7 @@ jobs:
proxy_host: ${{ env.SSH_PROXY_HOST }}
proxy_username: ${{ env.SSH_USERNAME }}
proxy_key: ${{ secrets.SSH_PRIVATE_KEY }}
protocol: ${{ env.SSH_PROTOCOL }}
script_stop: false
script: |
cd ${{ matrix.env }}
Expand All @@ -194,6 +199,7 @@ jobs:
proxy_host: ${{ env.SSH_PROXY_HOST }}
proxy_username: ${{ env.SSH_USERNAME }}
proxy_key: ${{ secrets.SSH_PRIVATE_KEY }}
protocol: ${{ env.SSH_PROTOCOL }}
envs: DOCKER_CLIENT_TIMEOUT,COMPOSE_HTTP_TIMEOUT
script_stop: false
script: |
Expand All @@ -216,6 +222,7 @@ jobs:
proxy_host: ${{ env.SSH_PROXY_HOST }}
proxy_username: ${{ env.SSH_USERNAME }}
proxy_key: ${{ secrets.SSH_PRIVATE_KEY }}
protocol: ${{ env.SSH_PROTOCOL }}
script_stop: false
script: |
cd ${{ matrix.env}}
Expand All @@ -237,6 +244,7 @@ jobs:
proxy_host: ${{ env.SSH_PROXY_HOST }}
proxy_username: ${{ env.SSH_USERNAME }}
proxy_key: ${{ secrets.SSH_PRIVATE_KEY }}
protocol: ${{ env.SSH_PROTOCOL }}
envs: DOCKER_CLIENT_TIMEOUT,COMPOSE_HTTP_TIMEOUT
script_stop: false
script: |
Expand All @@ -253,6 +261,7 @@ jobs:
proxy_host: ${{ env.SSH_PROXY_HOST }}
proxy_username: ${{ env.SSH_USERNAME }}
proxy_key: ${{ secrets.SSH_PRIVATE_KEY }}
protocol: ${{ env.SSH_PROTOCOL }}
script_stop: false
script: |
cd ${{ matrix.env }}
Expand Down

0 comments on commit 07aaa8f

Please sign in to comment.