Skip to content

Commit

Permalink
fix: update SSH_PROXY_HOST for deployment
Browse files Browse the repository at this point in the history
After moving staging to ovh1, we cannot access 200 container from
ovh2 anymore (only from ovh1)
  • Loading branch information
raphael0202 committed May 23, 2023
1 parent 95d953b commit a8b8292
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container-deploy-ml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set common variables
run: |
echo "PROJECT_DIR=robotoff-ml" >> $GITHUB_ENV
echo "SSH_PROXY_HOST=ovh2.openfoodfacts.org" >> $GITHUB_ENV
echo "SSH_PROXY_HOST=ovh1.openfoodfacts.org" >> $GITHUB_ENV
echo "SSH_USERNAME=off" >> $GITHUB_ENV
- name: Set various variables for staging deployment
if: matrix.env == 'robotoff-ml-net'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ jobs:
environment: ${{ matrix.env }}
concurrency: ${{ matrix.env }}
steps:
- name: Set common variables
run: |
echo "SSH_PROXY_HOST=ovh1.openfoodfacts.org" >> $GITHUB_ENV
echo "SSH_USERNAME=off" >> $GITHUB_ENV
- name: Set various variable for staging deployment
if: matrix.env == 'robotoff-net'
run: |
echo "SSH_HOST=10.1.0.200" >> $GITHUB_ENV
echo "SSH_PROXY_HOST=ovh2.openfoodfacts.org" >> $GITHUB_ENV
echo "SSH_USERNAME=off" >> $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 @@ -32,8 +34,6 @@ jobs:
if: matrix.env == 'robotoff-org'
run: |
echo "SSH_HOST=10.1.0.201" >> $GITHUB_ENV
echo "SSH_PROXY_HOST=ovh2.openfoodfacts.org" >> $GITHUB_ENV
echo "SSH_USERNAME=off" >> $GITHUB_ENV
echo "ROBOTOFF_INSTANCE=prod" >> $GITHUB_ENV
echo "ROBOTOFF_TLD=org" >> $GITHUB_ENV
echo "MONGO_URI=mongodb://213.36.253.195:27017" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/models-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set common variables
run: |
echo "PROJECT_DIR=robotoff-ml" >> $GITHUB_ENV
echo "SSH_PROXY_HOST=ovh2.openfoodfacts.org" >> $GITHUB_ENV
echo "SSH_PROXY_HOST=ovh1.openfoodfacts.org" >> $GITHUB_ENV
echo "SSH_USERNAME=off" >> $GITHUB_ENV
- name: Set various variables for 'robotoff-ml-net' environment
if: matrix.env == 'robotoff-ml-net'
Expand Down

0 comments on commit a8b8292

Please sign in to comment.