use envs everywhere

This commit is contained in:
Matthias 2021-12-02 13:45:20 +01:00
parent 340c7574e4
commit b0f14d23b2
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -14,7 +14,6 @@ on:
env: env:
python_version: 3.7 python_version: 3.7
node_version: 16 node_version: 16
server_start_sleep: 60 server_start_sleep: 60
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -219,10 +218,10 @@ jobs:
postgres: postgres:
image: postgres image: postgres
env: env:
POSTGRES_USER: inventree POSTGRES_USER: ${{ env.INVENTREE_DB_USER }}
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: ${{ env.INVENTREE_DB_PASSWORD }}
ports: ports:
- 5432:5432 - ${{ env.INVENTREE_DB_PORT }}:${{ env.INVENTREE_DB_PORT }}
redis: redis:
image: redis image: redis
@ -270,12 +269,12 @@ jobs:
env: env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: ${{ env.INVENTREE_DB_NAME }} MYSQL_DATABASE: ${{ env.INVENTREE_DB_NAME }}
MYSQL_USER: inventree MYSQL_USER: ${{ env.INVENTREE_DB_USER }}
MYSQL_PASSWORD: password MYSQL_PASSWORD: ${{ env.INVENTREE_DB_PASSWORD }}
MYSQL_ROOT_PASSWORD: password MYSQL_ROOT_PASSWORD: ${{ env.INVENTREE_DB_PASSWORD }}
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
ports: ports:
- 3306:3306 - ${{ env.INVENTREE_DB_PORT }}:${{ env.INVENTREE_DB_PORT }}
steps: steps:
- name: Checkout Code - name: Checkout Code