This commit is contained in:
@@ -46,7 +46,7 @@ jobs:
|
||||
run: |
|
||||
# 1. Tạo mạng Docker nếu chưa tồn tại
|
||||
docker network create ${DOCKER_NET} || true
|
||||
|
||||
|
||||
docker run -d --name postgres-it --network ${DOCKER_NET} -e POSTGRES_PASSWORD=password postgres || true
|
||||
docker run -d --name redis-it --network ${DOCKER_NET} redis || true
|
||||
|
||||
@@ -58,8 +58,7 @@ jobs:
|
||||
./mvnw -B verify \
|
||||
-Dquarkus.container-image.push=false \
|
||||
-Dquarkus.test.container.network=${DOCKER_NET} \
|
||||
-Dquarkus.datasource.jdbc.url=jdbc:postgresql://postgres-it:5432/postgres \
|
||||
-Dquarkus.redis.hosts=redis://redis-it:6379
|
||||
-Dquarkus.test.arg-line="-Dquarkus.datasource.jdbc.url=jdbc:postgresql://postgres-it:5432/postgres -Dquarkus.redis.hosts=redis://redis-it:6379"
|
||||
|
||||
- name: Clean up Docker containers
|
||||
if: always()
|
||||
|
||||
Reference in New Issue
Block a user