Support OIDC role assumption for ECR pushes #258
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | openssl base64 -A`" | |
| 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 |