Skip to content

Commit 4ed5738

Browse files
committed
adding new workflows and removing unused ones
1 parent 34f7856 commit 4ed5738

5 files changed

Lines changed: 78 additions & 169 deletions

File tree

.github/workflows/cicd-2-publish.yaml

Lines changed: 0 additions & 95 deletions
This file was deleted.

.github/workflows/cicd-3-deploy.yaml

Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy to Dev and Sandbox
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
dev:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
- uses: actions/setup-python@v6
14+
with:
15+
python-version: '3.11'
16+
- uses: actions/setup-node@v6
17+
with:
18+
node-version: '20'
19+
- run: make install
20+
- run: make construct-spec APIM_ENV=dev
21+
- run: make publish-spec APIM_ENV=dev
22+
- run: make deploy-spec APIM_ENV=dev
23+
24+
sandbox:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v6
28+
- uses: actions/setup-python@v6
29+
with:
30+
python-version: '3.11'
31+
- uses: actions/setup-node@v6
32+
with:
33+
node-version: '20'
34+
- run: make install
35+
- run: make construct-spec APIM_ENV=sandbox
36+
- run: make generate-sandbox-spec
37+
- run: make deploy-sandbox-spec
38+
- run: make build-and-publish-sandbox-image
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy to Preprod
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
preprod:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
- uses: actions/setup-python@v6
12+
with:
13+
python-version: '3.11'
14+
- uses: actions/setup-node@v6
15+
with:
16+
node-version: '20'
17+
- run: make install
18+
- run: make construct-spec APIM_ENV=preprod
19+
- run: make publish-spec APIM_ENV=preprod
20+
- run: make deploy-spec APIM_ENV=preprod
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy to Prod
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
prod:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
- uses: actions/setup-python@v6
12+
with:
13+
python-version: '3.11'
14+
- uses: actions/setup-node@v6
15+
with:
16+
node-version: '20'
17+
- run: make install
18+
- run: make construct-spec APIM_ENV=prod
19+
- run: make publish-spec APIM_ENV=prod
20+
- run: make deploy-spec APIM_ENV=prod

0 commit comments

Comments
 (0)