File tree Expand file tree Collapse file tree 1 file changed +26
-9
lines changed
Expand file tree Collapse file tree 1 file changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,32 @@ jobs:
3232 with :
3333 node-version : ${{ matrix.node-version }}
3434 - name : Install and build
35+ working-directory : ./frontend
3536 run : |
36- cd ./frontend
3737 npm install
3838 npm run build
39- cp -r ./dist ../backend/
40- cd ../backend
41- - name : Build Image
42- run : docker build -t registry.cn-shanghai.aliyuncs.com/dataease-v2/sqlbot:${{ inputs.image_version }} .
43- - name : Login registry
44- run : docker login registry.cn-shanghai.aliyuncs.com --username=划船不用桨_小白 --password=1qaz@WSX
45- - name : Push Image
46- run : docker push registry.cn-shanghai.aliyuncs.com/dataease-v2/sqlbot:${{ inputs.image_version }}
39+ - name : Copy dist to backend
40+ run : |
41+ cp -r frontend/dist backend/
42+ - name : Login to Docker
43+ uses : docker/login-action@v2
44+ with :
45+ username : 划船不用桨_小白
46+ password : 1qaz@WSX
47+ # username: ${{ secrets.DOCKERHUB_USERNAME }}
48+ # password: ${{ secrets.DOCKERHUB_TOKEN }}
49+ - name : Build and push Docker image
50+ uses : docker/build-push-action@v4
51+ with :
52+ context : ./backend
53+ push : true
54+ tags : |
55+ registry.cn-shanghai.aliyuncs.com/dataease-v2/sqlbot:${{ inputs.image_version }}
56+ #${{ secrets.DOCKERHUB_REGISTRY }}/sqlbot:latest
57+ #${{ secrets.DOCKERHUB_REGISTRY }}/sqlbot:${{ github.sha }}
58+ # - name: Build Image
59+ # run: docker build -t registry.cn-shanghai.aliyuncs.com/dataease-v2/sqlbot:${{ inputs.image_version }} .
60+ # - name: Login registry
61+ # run: docker login registry.cn-shanghai.aliyuncs.com --username=划船不用桨_小白 --password=1qaz@WSX
62+ # - name: Push Image
63+ # run: docker push registry.cn-shanghai.aliyuncs.com/dataease-v2/sqlbot:${{ inputs.image_version }}
You can’t perform that action at this time.
0 commit comments