forked from openfoodfacts/openfoodfacts-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mongodb-exporter
- Loading branch information
Showing
937 changed files
with
25,443 additions
and
7,787 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,9 @@ jobs: | |
echo "COMPOSE_PATH_SEPARATOR=;" >> .env | ||
echo "COMPOSE_FILE=docker-compose.yml;docker/prod.yml;docker/geolite2.yml;docker/monitor.yml" >> .env | ||
echo "PRODUCT_OPENER_EXPOSE=" >> .env | ||
echo "ADMIN_EXPOSE=" >> .env | ||
# Set App variables | ||
echo "TAG=sha-${{ github.sha }}" >> .env | ||
echo "PRODUCERS_PLATFORM=0" >> .env | ||
|
@@ -111,6 +114,8 @@ jobs: | |
echo "GEOLITE2_PATH=${{ secrets.GEOLITE2_PATH }}" >> .env | ||
echo "GEOLITE2_LICENSE_KEY=${{ secrets.GEOLITE2_LICENSE_KEY }}" >> .env | ||
echo "GEOLITE2_ACCOUNT_ID=${{ secrets.GEOLITE2_ACCOUNT_ID }}" >> .env | ||
echo "LOG_LEVEL_ROOT=ERROR" >> .env | ||
echo "LOG_LEVEL_MONGODB=ERROR" >> .env | ||
# Override domain name in nginx.conf | ||
sed -i.bak "s/productopener.localhost/${{ secrets.PRODUCT_OPENER_DOMAIN }}/g" ./conf/nginx.conf | ||
|
@@ -129,6 +134,20 @@ jobs: | |
cd ${{ matrix.env }} | ||
make create_external_volumes | ||
- name: init backend | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
proxy_host: ${{ secrets.PROXY_HOST }} | ||
proxy_username: ${{ secrets.USERNAME }} | ||
proxy_key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
script_stop: false | ||
script: | | ||
cd ${{ matrix.env }} | ||
make init_backend | ||
- name: Start services | ||
uses: appleboy/ssh-action@master | ||
with: | ||
|
@@ -142,8 +161,8 @@ jobs: | |
script: | | ||
cd ${{ matrix.env }} | ||
make hdown | ||
make build_lang | ||
make up | ||
make setup_incron | ||
- name: Check services are up | ||
uses: appleboy/ssh-action@master | ||
|
@@ -175,7 +194,7 @@ jobs: | |
cd ${{ matrix.env }} | ||
make prune | ||
- uses: frankie567/[email protected].2 | ||
- uses: frankie567/[email protected].3 | ||
if: ${{ always() }} | ||
with: | ||
apiHost: https://grafana.openfoodfacts.org | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Matrix | ||
uses: crowdin/[email protected].0 | ||
uses: crowdin/[email protected].1 | ||
with: | ||
upload_translations: false # default is false | ||
download_translations: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: crowdin action | ||
uses: crowdin/[email protected].0 | ||
uses: crowdin/[email protected].1 | ||
with: | ||
upload_translations: false # default is false | ||
# Use this option to upload translations for a single specified language | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.