fix(ci): Add load:true for Docker image and secret key for testing
This commit is contained in:
parent
2bd44bb8b0
commit
b479903b6c
1 changed files with 2 additions and 0 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -176,6 +176,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: false
|
push: false
|
||||||
|
load: true
|
||||||
tags: streamflix:test
|
tags: streamflix:test
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
@ -184,6 +185,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
docker run -d --name test -p 8000:8000 \
|
docker run -d --name test -p 8000:8000 \
|
||||||
-e STREAMFLIX_DEBUG=true \
|
-e STREAMFLIX_DEBUG=true \
|
||||||
|
-e STREAMFLIX_SECRET_KEY=sf_tv_secure_9s8d7f6g5h4j3k2l1 \
|
||||||
streamflix:test
|
streamflix:test
|
||||||
sleep 10
|
sleep 10
|
||||||
curl -f http://localhost:8000/api/health || exit 1
|
curl -f http://localhost:8000/api/health || exit 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue