update with environment secret

This commit is contained in:
leehk 2025-04-14 11:22:40 +08:00
parent a8bad1341e
commit c5e3c884be

View File

@ -68,6 +68,9 @@ jobs:
name: Test Docker Image
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
packages: write
steps:
- name: Check disk space
run: df -h
@ -111,11 +114,15 @@ jobs:
docker run \
-d \
--name backend-backend \
-e PORT=8765 \
-e ENVIRONMENT=dev \
-e TESTING=0 \
-p 8004:8765 \
${{ env.IMAGE }}:latest
env:
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
DEEPSEEK_API_URL: ${{ secrets.DEEPSEEK_API_URL }}
ENVIRONMENT: dev
TESTING: 0
PORT: 8765
- name: Monitor memory usage
run: free -h
- name: Test port accessibility