|
24 | 24 | --health-timeout=5s |
25 | 25 | --health-retries=3 |
26 | 26 |
|
| 27 | + hydra: |
| 28 | + image: oryd/hydra:v2.3 |
| 29 | + env: |
| 30 | + DSN: "memory" |
| 31 | + SECRETS_SYSTEM: "testing-secret-that-is-at-least-32-chars-long" |
| 32 | + URLS_SELF_ISSUER: "http://localhost:4444/" |
| 33 | + URLS_CONSENT: "http://localhost/auth/consent" |
| 34 | + URLS_LOGIN: "http://localhost/auth/login" |
| 35 | + URLS_LOGOUT: "http://localhost/auth/logout" |
| 36 | + URLS_ERROR: "http://localhost/auth/error" |
| 37 | + URLS_POST_LOGOUT_REDIRECT: "http://localhost/auth/choose" |
| 38 | + LOG_LEAK_SENSITIVE_VALUES: "true" |
| 39 | + DEV: "true" |
| 40 | + ports: |
| 41 | + - 4444:4444 |
| 42 | + - 4445:4445 |
| 43 | + options: >- |
| 44 | + --health-cmd "wget --no-verbose --tries=1 --spider http://localhost:4445/health/alive || exit 1" |
| 45 | + --health-interval=10s |
| 46 | + --health-timeout=5s |
| 47 | + --health-retries=5 |
| 48 | + --health-start-period=10s |
| 49 | +
|
27 | 50 | steps: |
28 | 51 | - uses: actions/checkout@v4 |
29 | 52 |
|
@@ -78,10 +101,14 @@ jobs: |
78 | 101 | echo "AWS_DEFAULT_REGION=us-east-1" >> .env |
79 | 102 | echo "AWS_BUCKET_AVATARS=test-bucket" >> .env |
80 | 103 | echo "AWS_ENDPOINT=http://localhost:9000" >> .env |
81 | | - # Override .env.testing DB host for CI (Docker service uses 127.0.0.1) |
| 104 | + echo "HYDRA_ADMIN_URL=http://127.0.0.1:4445/" >> .env |
| 105 | + echo "HYDRA_PUBLIC_URL=http://127.0.0.1:4444" >> .env |
| 106 | + # Override .env.testing for CI (Docker services use 127.0.0.1) |
82 | 107 | sed -i 's/DB_HOST=mysql/DB_HOST=127.0.0.1/' .env.testing |
83 | 108 | sed -i 's/DB_USERNAME=idp/DB_USERNAME=root/' .env.testing |
84 | 109 | sed -i 's/DB_PASSWORD=idp/DB_PASSWORD=password/' .env.testing |
| 110 | + sed -i 's|HYDRA_ADMIN_URL=.*|HYDRA_ADMIN_URL=http://127.0.0.1:4445/|' .env.testing |
| 111 | + sed -i 's|HYDRA_PUBLIC_URL=.*|HYDRA_PUBLIC_URL=http://127.0.0.1:4444|' .env.testing |
85 | 112 |
|
86 | 113 | - name: Generate Application Key |
87 | 114 | run: php artisan key:generate |
|
0 commit comments