mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
use envs everywhere
This commit is contained in:
parent
340c7574e4
commit
b0f14d23b2
15
.github/workflows/pr_checks.yaml
vendored
15
.github/workflows/pr_checks.yaml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user