-
-
Notifications
You must be signed in to change notification settings - Fork 333
34 lines (34 loc) · 1000 Bytes
/
docker-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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: "[email protected]"
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