diff --git a/.github/workflows/ci_wip.yml b/.github/workflows/ci_wip.yml index da84d8d..eeb897c 100644 --- a/.github/workflows/ci_wip.yml +++ b/.github/workflows/ci_wip.yml @@ -50,10 +50,11 @@ jobs: run: bash -c 'source ~/.bashrc; if kardinal | grep -q "Kardinal CLI"; then exit 0; else exit 1; fi' - name: Retrieve the tenant UUID + id: tenant run: | tenant_id=$(kardinal tenant show) echo ${tenant_id} - echo "tenant_id=${tenant_id}" >> "$GITHUB_OUTPUT" + echo "id=${tenant_id}" >> "$GITHUB_OUTPUT" - name: Deploy boutique demo manifest run: | @@ -61,16 +62,16 @@ jobs: - name: Test cluster resources endpoint run: | - tenant_id=${{ steps.vars.outputs.tenant_id }} - deployments=$(curl http://127.0.0.1:8080/tenant/${tenant_id}/cluster-resources | jq -r '.deployments[].metadata.name') + tenant_id=${{ steps.tenant.outputs.id }} + deployments=$(curl http://localhost:8080/tenant/${tenant_id}/cluster-resources | jq -r '.deployments[].metadata.name') if [ "${deployments}" != "postgres-prod\nproductcatalogservice-prod\ncartservice-prod\nfrontend-prod" ]; then exit 1; fi - name: Create, validate and delete flow run: | KARDINAL_CLI_DEV_MODE=TRUE kardinal flow create frontend kurtosistech/frontend:demo-frontend > kardinal.out flow_id=$(grep "Flow.*created" kardinal.out | cut -d ' ' -f2 | tr -d "\"") - tenant_id=${{ steps.vars.outputs.tenant_id }} - deployments=$(curl http://127.0.0.1:8080/tenant/${tenant_id}/cluster-resources | jq -r '.deployments[].metadata.name') + tenant_id=${{ steps.tenant.outputs.id }} + deployments=$(curl http://localhost:8080/tenant/${tenant_id}/cluster-resources | jq -r '.deployments[].metadata.name') if [ "${deployments}" != "postgres-prod\nproductcatalogservice-prod\ncartservice-prod\nfrontend-prod" ]; then exit 1; fi kardinal flow delete ${flow_id} diff --git a/docker-compose.yml b/docker-compose.yml index 4447e92..8da43ac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ networks: - cont: + kardinal: driver: bridge enable_ipv6: false