File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ main :
2+ web_trigger_build_node_image :
3+ - services :
4+ - docker
5+ imports : https://cnb.cool/1Panel-dev/secrets/-/blob/main/docker-1panel-envs.yml
6+ stages :
7+ - name : set docker tag
8+ script : echo -n "${DOCKER_REGISTRY}/${DOCKER_GROUP}/node:$NODE_VERSION"
9+ exports :
10+ info : IMAGE_TAG
11+
12+ - name : docker login
13+ script : docker login -u ${DOCKER_USER} -p "${DOCKER_PWD}" ${DOCKER_REGISTRY}
14+
15+
16+ - name : echo dir
17+ script : cat node/Dockerfile
18+
19+ - name : docker build
20+ script : docker build --build-arg NODE_VERSION=$NODE_VERSION -t $IMAGE_TAG node/Dockerfile
21+
22+ - name : push image
23+ script : docker push $IMAGE_TAG
Original file line number Diff line number Diff line change 1+ branch :
2+ - buttons :
3+ - name : " 编译 Node.js 镜像"
4+ event : web_trigger_build_node_image
5+ permissions :
6+ roles :
7+ - owner
8+ inputs :
9+ NODE_VERSION :
10+ name : " Node.js 版本"
11+ description : " Node.js 版本"
12+ default : " 18.20.8"
13+ required : true
14+ # node21Version:
15+ # name: "Node.js 21.x 版本"
16+ # description: "Node.js 21.x 版本"
17+ # default: "21.7.3"
18+ # required: true
19+ # node20Version:
20+ # name: "Node.js 20.x 版本"
21+ # description: "Node.js 20.x 版本"
22+ # default: "20.19.3"
23+ # required: true
24+ # node18Version:
25+ # name: "Node.js 18.x 版本"
26+ # description: "Node.js 18.x 版本"
27+ # default: "18.20.8"
28+ # required: true
Original file line number Diff line number Diff line change 2020 -e PLUGIN_AUTH_TYPE="https" \
2121 -e PLUGIN_USERNAME="cnb" \
2222 -e PLUGIN_PASSWORD=${{ secrets.CNB_PASSWORD }} \
23+ -e PLUGIN_FORCE=true \
2324 tencentcom/git-sync
You can’t perform that action at this time.
0 commit comments