File tree Expand file tree Collapse file tree 3 files changed +68
-11
lines changed Expand file tree Collapse file tree 3 files changed +68
-11
lines changed Original file line number Diff line number Diff line change 63
63
username : ${{ github.repository_owner }}
64
64
password : ${{ secrets.GITHUB_TOKEN }}
65
65
66
- - name : Login to Docker Hub
67
- uses : docker/login-action@v3
68
- with :
69
- username : ${{ secrets.DOCKERHUB_USERNAME }}
70
- password : ${{ secrets.DOCKERHUB_TOKEN }}
71
-
72
66
- name : Set up QEMU
73
67
uses : docker/setup-qemu-action@v3
74
68
83
77
platforms : linux/amd64,linux/arm64
84
78
push : true
85
79
tags : |
86
- corentinth/it-tools:nightly
87
- ghcr.io/corentinth/it-tools:nightly
80
+ ghcr.io/sharevb/it-tools:nightly
Original file line number Diff line number Diff line change
1
+ name : Build and Push Docker Image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - chore/all-my-stuffs
7
+
8
+ jobs :
9
+ ci :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - run : corepack enable
15
+ - uses : actions/setup-node@v3
16
+ with :
17
+ node-version : 20
18
+ cache : ' pnpm'
19
+
20
+ - name : Install dependencies
21
+ run : pnpm i
22
+
23
+ - name : Run linters
24
+ run : pnpm lint
25
+
26
+ - name : Run unit tests
27
+ run : pnpm test
28
+
29
+ - name : Build the app
30
+ run : pnpm build
31
+
32
+ build :
33
+ runs-on : ubuntu-latest
34
+ needs :
35
+ - ci
36
+ steps :
37
+ # Checkout the repository
38
+ - name : Checkout repository
39
+ uses : actions/checkout@v3
40
+
41
+ # Set up Docker Buildx (to support multi-platform builds)
42
+ - name : Set up Docker Buildx
43
+ uses : docker/setup-buildx-action@v2
44
+
45
+ # Log in to GitHub Container Registry (GHCR)
46
+ - name : Log in to GitHub Container Registry
47
+ uses : docker/login-action@v2
48
+ with :
49
+ registry : ghcr.io
50
+ username : ${{ github.repository_owner }}
51
+ password : ${{ secrets.GITHUB_TOKEN }}
52
+
53
+ # Build and push the Docker image
54
+ - name : Build and push Docker image
55
+ uses : docker/build-push-action@v5
56
+ with :
57
+ context : .
58
+ push : true
59
+ tags : ghcr.io/${{ github.repository_owner }}/it-tools:latest
60
+ # Optionally add version tags or specific branch tags like:
61
+ # tags: |
62
+ # ghcr.io/${{ github.repository_owner }}/your-repo-name:latest
63
+ # ghcr.io/${{ github.repository_owner }}/your-repo-name:${{ github.sha }}
64
+
65
+ # Optionally log out
66
+ - name : Log out from GitHub Container Registry
67
+ run : docker logout ghcr.io
Original file line number Diff line number Diff line change @@ -274,13 +274,10 @@ declare module '@vue/runtime-core' {
274
274
NProgress : typeof import ( 'naive-ui' ) [ 'NProgress' ]
275
275
NRadio : typeof import ( 'naive-ui' ) [ 'NRadio' ]
276
276
NRadioGroup : typeof import ( 'naive-ui' ) [ 'NRadioGroup' ]
277
- NRadio : typeof import ( 'naive-ui' ) [ 'NRadio' ]
278
- NRadioGroup : typeof import ( 'naive-ui' ) [ 'NRadioGroup' ]
279
277
NScrollbar : typeof import ( 'naive-ui' ) [ 'NScrollbar' ]
280
278
NSelect : typeof import ( 'naive-ui' ) [ 'NSelect' ]
281
279
NSlider : typeof import ( 'naive-ui' ) [ 'NSlider' ]
282
280
NSpace : typeof import ( 'naive-ui' ) [ 'NSpace' ]
283
- NSpace : typeof import ( 'naive-ui' ) [ 'NSpace' ]
284
281
NSpin : typeof import ( 'naive-ui' ) [ 'NSpin' ]
285
282
NStatistic : typeof import ( 'naive-ui' ) [ 'NStatistic' ]
286
283
NSwitch : typeof import ( 'naive-ui' ) [ 'NSwitch' ]
You can’t perform that action at this time.
0 commit comments