@@ -3,21 +3,9 @@ name: Build Node Image
33on :
44 workflow_dispatch :
55 inputs :
6- node22Version :
7- description : ' Node 22 Version'
8- default : ' 22.17.0'
9- required : true
10- node21Version :
11- description : ' Node 21 Version'
12- default : ' 21.7.3'
13- required : true
14- node20Version :
15- description : ' Node 20 Version'
16- default : ' 20.19.3'
17- required : true
18- node18Version :
19- description : ' Node 18 Version'
20- default : ' 18.20.8'
6+ nodeVersion :
7+ description : ' Node Version'
8+ default : ' 24.10.0'
219 required : true
2210jobs :
2311 docker :
@@ -38,62 +26,18 @@ jobs:
3826 username : ${{ secrets.DOCKERHUB_USERNAME }}
3927 password : ${{ secrets.DOCKERHUB_PASSWORD }}
4028
41- - name : Build Node-22 and Push
29+ - name : Build Node Image and Push
4230 uses : docker/build-push-action@v5
4331 with :
4432 context : node
4533 file : node/Dockerfile
4634 platforms : linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
4735 push : true
4836 build-args :
49- NODE_VERSION=${{ github.event.inputs.node22Version }}
37+ NODE_VERSION=${{ github.event.inputs.nodeVersion }}
5038 tags : |
51- 1panel/node:${{ github.event.inputs.node22Version }}
39+ 1panel/node:${{ github.event.inputs.nodeVersion }}
5240 # outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
5341 cache-from : type=gha
5442 cache-to : type=gha,mode=max
5543
56- - name : Build Node-21 and Push
57- uses : docker/build-push-action@v5
58- with :
59- context : node
60- file : node/Dockerfile
61- platforms : linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
62- push : true
63- build-args :
64- NODE_VERSION=${{ github.event.inputs.node21Version }}
65- tags : |
66- 1panel/node:${{ github.event.inputs.node21Version }}
67- # outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
68- cache-from : type=gha
69- cache-to : type=gha,mode=max
70-
71- - name : Build Node-20 and Push
72- uses : docker/build-push-action@v5
73- with :
74- context : node
75- file : node/Dockerfile
76- platforms : linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
77- push : true
78- build-args :
79- NODE_VERSION=${{ github.event.inputs.node20Version }}
80- tags : |
81- 1panel/node:${{ github.event.inputs.node20Version }}
82- # outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
83- cache-from : type=gha
84- cache-to : type=gha,mode=max
85-
86- - name : Build Node-18 and Push
87- uses : docker/build-push-action@v5
88- with :
89- context : node
90- file : node/Dockerfile
91- platforms : linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
92- push : true
93- build-args :
94- NODE_VERSION=${{ github.event.inputs.node18Version }}
95- tags : |
96- 1panel/node:${{ github.event.inputs.node18Version }}
97- # outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
98- cache-from : type=gha
99- cache-to : type=gha,mode=max
0 commit comments