mirror of
https://github.com/getlago/lago.git
synced 2025-02-23 21:25:54 +07:00
35 lines
1000 B
YAML
35 lines
1000 B
YAML
![]() |
name: "Docker CI"
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
workflow_dispatch:
|
||
|
jobs:
|
||
|
docker-ci:
|
||
|
name: Docker CI
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
with:
|
||
|
sparse-checkout: |
|
||
|
docker-compose.yml
|
||
|
- name: Launch all services with default configuration
|
||
|
env:
|
||
|
LAGO_CREATE_ORG: "true"
|
||
|
LAGO_ORG_NAME: "Lago"
|
||
|
LAGO_ORG_USER_EMAIL: "foo@bar.com"
|
||
|
LAGO_ORG_USER_PASSWORD: "foobar"
|
||
|
LAGO_ORG_API_KEY: "test"
|
||
|
run: |
|
||
|
export LAGO_RSA_PRIVATE_KEY="`openssl genrsa 2048 | base64 | tr -d '\n'`"
|
||
|
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 http://localhost:3000/api/v1/customers -H "Authorization: Bearer test"
|
||
|
- name: Down services
|
||
|
run: docker compose down
|