Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jdenquin committed Jan 30, 2025
1 parent 6104eea commit d1265b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,20 @@ jobs:
docker-compose.yml
- name: Launch all services with default configuration
env:
LAGO_RSA_PRIVATE_KEY: "test-rsa-private-key"
LAGO_CREATE_ORG: "true"
LAGO_ORG_NAME: "Lago"
LAGO_ORG_USER_EMAIL: "foo@bar.com"
LAGO_ORG_USER_PASSWORD: "foobar"
LAGO_ORG_API_KEY: "my-api-key"
LAGO_ORG_API_KEY: "test"
run: |
export LAGO_RSA_PRIVATE_KEY="`openssl genrsa 2048 | base64 | tr -d '\n'`"
docker compose up
docker compose up -d --wait
- name: cURL API
run: curl -f http://localhost:3000/health
- name: cURL Front
run: curl -f http://localhost:80
- name: cURL API Customers
run: |
curl -f --request GET "http://localhost:3000/api/v1/customers" --header "Authorization Bearer: my-api-key"
curl -f http://localhost:3000/api/v1/customers -H "Authorization: Bearer test"
- name: Down services
run: docker compose down
run: docker compose down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ x-postgres-image: &postgres-image
x-redis-image: &redis-image
image: redis:6-alpine
x-backend-image: &backend-image
image: getlago/api:v1.19.0
image: getlago/api:v1.20.1
x-frontend-image: &frontend-image
image: getlago/front:v1.19.0
image: getlago/front:v1.20.1

x-lago-api-url: &lago-api-url
"LAGO_API_URL": ${LAGO_API_URL:-http://localhost:3000}
Expand Down

0 comments on commit d1265b1

Please sign in to comment.