File tree Expand file tree Collapse file tree 2 files changed +33
-20
lines changed Expand file tree Collapse file tree 2 files changed +33
-20
lines changed Original file line number Diff line number Diff line change 1
- name : CD | Release Docker Image
1
+ name : Create Docker Image and Release it to Docker Hub
2
2
3
3
on :
4
- workflow_dispatch :
5
- push :
6
- branches :
7
- - " main"
4
+ release :
5
+ types : [published]
8
6
9
7
jobs :
10
8
docker :
11
9
runs-on : ubuntu-latest
12
- if : ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
13
-
14
10
steps :
15
11
- name : Checkout
16
12
uses : actions/checkout@v3
49
45
password : ${{ secrets.DOCKERHUB_TOKEN }}
50
46
repository : ${{ secrets.DOCKERHUB_REPO }}/${{ secrets.DOCKERHUB_IMG }}
51
47
52
- - name : Setup Node.js
53
- uses : actions/setup-node@v3
54
- with :
55
- node-version : 18
56
-
57
- - name : Install dependencies
58
- run : npm install
59
-
60
- - name : Release
61
- env :
62
- GITHUB_TOKEN : ${{ secrets.GH_PAT }}
63
- run : npx semantic-release
64
-
Original file line number Diff line number Diff line change
1
+ name : Create Release on GitHub
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches :
7
+ - " main"
8
+
9
+ jobs :
10
+ docker :
11
+ runs-on : ubuntu-latest
12
+ if : ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
13
+
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v3
17
+
18
+ - name : Setup Node.js
19
+ uses : actions/setup-node@v3
20
+ with :
21
+ node-version : 18
22
+
23
+ - name : Install dependencies
24
+ run : npm install
25
+
26
+ - name : Release
27
+ env :
28
+ GITHUB_TOKEN : ${{ secrets.GH_PAT }}
29
+ run : npx semantic-release
30
+
You can’t perform that action at this time.
0 commit comments