Skip to content

Commit

Permalink
chore: fix deploy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Aug 21, 2024
1 parent 0f5b8ca commit e4999ac
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .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 @@ -38,9 +39,11 @@ jobs:
- name: Set various variable for production deployment
if: matrix.env == 'robotoff-org'
run: |
# First connect on the SSH proxy, using ipv6 address
echo "SSH_PROXY_HOST=osm45.openstreetmap.fr" >> $GITHUB_ENV
echo "SSH_USERNAME=off" >> $GITHUB_ENV
# This is the OSM proxy server, that does have an ipv4 address
echo "SSH_PROXY_HOST=45.147.209.254" >> $GITHUB_ENV
# We use 'raphael' user as we don't have an off user yet on the proxy machine
echo "SSH_USERNAME=raphael" >> $GITHUB_ENV
echo "SSH_PROTOCOL=tcp" >> $GITHUB_ENV
echo "SSH_HOST=10.3.0.200" >> $GITHUB_ENV
echo "ROBOTOFF_INSTANCE=prod" >> $GITHUB_ENV
echo "ROBOTOFF_TLD=org" >> $GITHUB_ENV
Expand Down Expand Up @@ -81,6 +84,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 +115,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 +182,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 +200,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 +223,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 +245,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 +262,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 e4999ac

Please sign in to comment.