Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 5ff6f70

Browse files
committed
chore: update workflows
1 parent dce4fdf commit 5ff6f70

File tree

2 files changed

+39
-20
lines changed

2 files changed

+39
-20
lines changed

.github/workflows/CD-dev.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CD DEV
2+
concurrency:
3+
group: ${{ github.ref }}
4+
cancel-in-progress: true
5+
on:
6+
workflow_run:
7+
workflows: ["CI"]
8+
branches:
9+
- dev
10+
types:
11+
- completed
12+
jobs:
13+
docker-master:
14+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
15+
uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
16+
with:
17+
context: master/.
18+
tags: premid/api-master
19+
secrets:
20+
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
21+
permissions:
22+
contents: read
23+
packages: write
24+
docker-worker:
25+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
26+
uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
27+
with:
28+
context: worker/.
29+
tags: premid/api-worker
30+
secrets:
31+
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
32+
permissions:
33+
contents: read
34+
packages: write

.github/workflows/CD.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: CD
1+
name: CD DEV
22
concurrency:
33
group: ${{ github.ref }}
44
cancel-in-progress: true
55
on:
6-
workflow_run:
7-
workflows: ["CI"]
6+
release:
87
branches:
98
- main
109
types:
11-
- completed
10+
- released
1211
jobs:
1312
docker-master:
1413
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1514
uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
1615
with:
1716
context: master/.
1817
tags: premid/api-master
18+
version: ${{ github.ref_name }}
1919
secrets:
2020
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
2121
permissions:
@@ -27,24 +27,9 @@ jobs:
2727
with:
2828
context: worker/.
2929
tags: premid/api-worker
30+
version: ${{ github.ref_name }}
3031
secrets:
3132
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
3233
permissions:
3334
contents: read
3435
packages: write
35-
deploy-master:
36-
needs: docker-master
37-
uses: Recodive/Workflows/.github/workflows/CD.yml@main
38-
secrets:
39-
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
40-
with:
41-
namespace: premid
42-
deployment: api-master
43-
deploy-worker:
44-
needs: docker-worker
45-
uses: Recodive/Workflows/.github/workflows/CD.yml@main
46-
secrets:
47-
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
48-
with:
49-
namespace: premid
50-
deployment: api-worker

0 commit comments

Comments
 (0)