Skip to content

Commit 9fab73f

Browse files
committed
Added products build
1 parent 8c5685d commit 9fab73f

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Payments API Release
2+
on:
3+
push:
4+
branches: [ main ]
5+
paths:
6+
- 'src/SourceSchemas/Products/**'
7+
- 'src/Defaults/**'
8+
- '.github/workflows/deploy-products.yml'
9+
workflow_dispatch: {}
10+
11+
jobs:
12+
deploy:
13+
uses: ./.github/workflows/deploy-source-schema.yml
14+
with:
15+
app_name: ccc-eu-fusion-demo-products-api
16+
project_path: src/SourceSchemas/Products
17+
container_port: 8080
18+
schema_file: src/SourceSchemas/Products/schema.graphqls
19+
secrets: inherit

src/SourceSchemas/Products/schema-settings.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
"name": "products-api",
33
"transports": {
44
"http": {
5-
"url": "http://localhost:5110/graphql"
5+
"clientName": "fusion",
6+
"url": "{{API_URL}}"
7+
}
8+
},
9+
"extensions": {
10+
"nitro": {
11+
"apiId": "QXBpCmcwMTk5MGUzNDVlMWU3MjMyYjc2MjYxYzFiNjRkMGQzYg=="
12+
}
13+
},
14+
"environments": {
15+
"aspire": {
16+
"API_URL": "http://localhost:5110/graphql"
17+
},
18+
"dev": {
19+
"API_URL": "https://ccc-eu-fusion-demo-products-api.calmbeach-1836b252.westeurope.azurecontainerapps.io/graphql"
20+
},
21+
"prod": {
22+
"API_URL": "https://api.example.com"
623
}
724
}
825
}

0 commit comments

Comments
 (0)