@@ -26,17 +26,11 @@ jobs:
2626 uses : actions/checkout@v4
2727 - name : Build main image (amd64) and load locally
2828 run : |
29- docker buildx build --platform linux/amd64 -t nexent/nexent:beta-amd64 --load -t ccr.ccs.tencentyun.com/nexent-hub/nexent:beta-amd64 - f make/main/Dockerfile .
29+ docker buildx build --platform linux/amd64 -t nexent/nexent:beta-amd64 --load -f make/main/Dockerfile .
3030 - name : Login to DockerHub
3131 run : echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
3232 - name : Push main image (amd64) to DockerHub
3333 run : docker push nexent/nexent:beta-amd64
34- - name : Logout Tencent Cloud
35- run : docker logout ccr.ccs.tencentyun.com
36- - name : Login to Tencent Cloud
37- run : echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
38- - name : Push main image (amd64) to Tencent Cloud
39- run : docker push ccr.ccs.tencentyun.com/nexent-hub/nexent:beta-amd64
4034
4135 build-and-push-main-arm64 :
4236 runs-on : ubuntu-latest
@@ -52,17 +46,11 @@ jobs:
5246 uses : actions/checkout@v4
5347 - name : Build main image (arm64) and load locally
5448 run : |
55- docker buildx build --platform linux/arm64 -t nexent/nexent:beta-arm64 --load -t ccr.ccs.tencentyun.com/nexent-hub/nexent:beta-arm64 - f make/main/Dockerfile .
49+ docker buildx build --platform linux/arm64 -t nexent/nexent:beta-arm64 --load -f make/main/Dockerfile .
5650 - name : Login to DockerHub
5751 run : echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
5852 - name : Push main image (arm64) to DockerHub
5953 run : docker push nexent/nexent:beta-arm64
60- - name : Logout Tencent Cloud
61- run : docker logout ccr.ccs.tencentyun.com
62- - name : Login to Tencent Cloud
63- run : echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
64- - name : Push main image (arm64) to Tencent Cloud
65- run : docker push ccr.ccs.tencentyun.com/nexent-hub/nexent:beta-arm64
6654
6755 build-and-push-data-process-amd64 :
6856 runs-on : ubuntu-latest
@@ -79,35 +67,19 @@ jobs:
7967 fi
8068 - name : Checkout code
8169 uses : actions/checkout@v4
82- - name : Check if model is cached locally
83- id : check-model
70+ - name : Clone model
8471 run : |
85- if [ -f ./model-assets/clip-vit-base-patch32/config.json ]; then
86- echo "cache-hit=true" >> "$GITHUB_OUTPUT"
87- else
88- echo "cache-hit=false" >> "$GITHUB_OUTPUT"
89- fi
90- - name : Clone model if not cached
91- if : steps.check-model.outputs.cache-hit == 'false'
92- run : |
93- mkdir -p ./model-assets
94- GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/openai/clip-vit-base-patch32 ./model-assets/clip-vit-base-patch32
95- cd ./model-assets/clip-vit-base-patch32
72+ GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/Nexent-AI/model-assets
73+ cd ./model-assets
9674 GIT_TRACE=1 GIT_CURL_VERBOSE=1 GIT_LFS_LOG=debug git lfs pull
97- rm -rf .git flax_model.msgpack tf_model.h5
75+ rm -rf .git .gitattributes
9876 - name : Build data process image (amd64) and load locally
9977 run : |
100- docker buildx build --platform linux/amd64 -t nexent/nexent-data-process:beta-amd64 --load -t ccr.ccs.tencentyun.com/nexent-hub/nexent-data-process:beta-amd64 - f make/data_process/Dockerfile .
78+ docker buildx build --platform linux/amd64 -t nexent/nexent-data-process:beta-amd64 --load -f make/data_process/Dockerfile .
10179 - name : Login to DockerHub
10280 run : echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
10381 - name : Push data process image (amd64) to DockerHub
10482 run : docker push nexent/nexent-data-process:beta-amd64
105- - name : Logout Tencent Cloud
106- run : docker logout ccr.ccs.tencentyun.com
107- - name : Login to Tencent Cloud
108- run : echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
109- - name : Push data process image (amd64) to Tencent Cloud
110- run : docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-data-process:beta-amd64
11183
11284 build-and-push-data-process-arm64 :
11385 runs-on : ubuntu-latest
@@ -124,35 +96,19 @@ jobs:
12496 fi
12597 - name : Checkout code
12698 uses : actions/checkout@v4
127- - name : Check if model is cached locally
128- id : check-model
99+ - name : Clone model
129100 run : |
130- if [ -f ./model-assets/clip-vit-base-patch32/config.json ]; then
131- echo "cache-hit=true" >> "$GITHUB_OUTPUT"
132- else
133- echo "cache-hit=false" >> "$GITHUB_OUTPUT"
134- fi
135- - name : Clone model if not cached
136- if : steps.check-model.outputs.cache-hit == 'false'
137- run : |
138- mkdir -p ./model-assets
139- GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/openai/clip-vit-base-patch32 ./model-assets/clip-vit-base-patch32
140- cd ./model-assets/clip-vit-base-patch32
101+ GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/Nexent-AI/model-assets
102+ cd ./model-assets
141103 GIT_TRACE=1 GIT_CURL_VERBOSE=1 GIT_LFS_LOG=debug git lfs pull
142- rm -rf .git flax_model.msgpack tf_model.h5
104+ rm -rf .git .gitattributes
143105 - name : Build data process image (arm64) and load locally
144106 run : |
145- docker buildx build --platform linux/arm64 -t nexent/nexent-data-process:beta-arm64 --load -t ccr.ccs.tencentyun.com/nexent-hub/nexent-data-process:beta-arm64 - f make/data_process/Dockerfile .
107+ docker buildx build --platform linux/arm64 -t nexent/nexent-data-process:beta-arm64 --load -f make/data_process/Dockerfile .
146108 - name : Login to DockerHub
147109 run : echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
148110 - name : Push data process image (arm64) to DockerHub
149111 run : docker push nexent/nexent-data-process:beta-arm64
150- - name : Logout Tencent Cloud
151- run : docker logout ccr.ccs.tencentyun.com
152- - name : Login to Tencent Cloud
153- run : echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
154- - name : Push data process image (arm64) to Tencent Cloud
155- run : docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-data-process:beta-arm64
156112
157113 build-and-push-web-amd64 :
158114 runs-on : ubuntu-latest
@@ -168,17 +124,11 @@ jobs:
168124 uses : actions/checkout@v4
169125 - name : Build web image (amd64) and load locally
170126 run : |
171- docker buildx build --platform linux/amd64 -t nexent/nexent-web:beta-amd64 --load -t ccr.ccs.tencentyun.com/nexent-hub/nexent-web:beta-amd64 - f make/web/Dockerfile .
127+ docker buildx build --platform linux/amd64 -t nexent/nexent-web:beta-amd64 --load -f make/web/Dockerfile .
172128 - name : Login to DockerHub
173129 run : echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
174130 - name : Push web image (amd64) to DockerHub
175131 run : docker push nexent/nexent-web:beta-amd64
176- - name : Logout Tencent Cloud
177- run : docker logout ccr.ccs.tencentyun.com
178- - name : Login to Tencent Cloud
179- run : echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
180- - name : Push web image (amd64) to Tencent Cloud
181- run : docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-web:beta-amd64
182132
183133 build-and-push-web-arm64 :
184134 runs-on : ubuntu-latest
@@ -194,17 +144,11 @@ jobs:
194144 uses : actions/checkout@v4
195145 - name : Build web image (arm64) and load locally
196146 run : |
197- docker buildx build --platform linux/arm64 -t nexent/nexent-web:beta-arm64 --load -t ccr.ccs.tencentyun.com/nexent-hub/nexent-web:beta-arm64 - f make/web/Dockerfile .
147+ docker buildx build --platform linux/arm64 -t nexent/nexent-web:beta-arm64 --load -f make/web/Dockerfile .
198148 - name : Login to DockerHub
199149 run : echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
200150 - name : Push web image (arm64) to DockerHub
201151 run : docker push nexent/nexent-web:beta-arm64
202- - name : Logout Tencent Cloud
203- run : docker logout ccr.ccs.tencentyun.com
204- - name : Login to Tencent Cloud
205- run : echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
206- - name : Push web image (arm64) to Tencent Cloud
207- run : docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-web:beta-arm64
208152
209153 manifest-push-main :
210154 runs-on : ubuntu-latest
@@ -220,16 +164,6 @@ jobs:
220164 nexent/nexent:beta-amd64 \
221165 nexent/nexent:beta-arm64
222166 docker manifest push nexent/nexent:beta
223- - name : Logout Tencent Cloud
224- run : docker logout ccr.ccs.tencentyun.com
225- - name : Login to Tencent Cloud
226- run : echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
227- - name : Create and push manifest for main (Tencent Cloud)
228- run : |
229- docker manifest create ccr.ccs.tencentyun.com/nexent-hub/nexent:beta \
230- ccr.ccs.tencentyun.com/nexent-hub/nexent:beta-amd64 \
231- ccr.ccs.tencentyun.com/nexent-hub/nexent:beta-arm64
232- docker manifest push ccr.ccs.tencentyun.com/nexent-hub/nexent:beta
233167
234168 manifest-push-data-process :
235169 runs-on : ubuntu-latest
@@ -245,16 +179,6 @@ jobs:
245179 nexent/nexent-data-process:beta-amd64 \
246180 nexent/nexent-data-process:beta-arm64
247181 docker manifest push nexent/nexent-data-process:beta
248- - name : Logout Tencent Cloud
249- run : docker logout ccr.ccs.tencentyun.com
250- - name : Login to Tencent Cloud
251- run : echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
252- - name : Create and push manifest for data-process (Tencent Cloud)
253- run : |
254- docker manifest create ccr.ccs.tencentyun.com/nexent-hub/nexent-data-process:beta \
255- ccr.ccs.tencentyun.com/nexent-hub/nexent-data-process:beta-amd64 \
256- ccr.ccs.tencentyun.com/nexent-hub/nexent-data-process:beta-arm64
257- docker manifest push ccr.ccs.tencentyun.com/nexent-hub/nexent-data-process:beta
258182
259183 manifest-push-web :
260184 runs-on : ubuntu-latest
@@ -269,14 +193,4 @@ jobs:
269193 docker manifest create nexent/nexent-web:beta \
270194 nexent/nexent-web:beta-amd64 \
271195 nexent/nexent-web:beta-arm64
272- docker manifest push nexent/nexent-web:beta
273- - name : Logout Tencent Cloud
274- run : docker logout ccr.ccs.tencentyun.com
275- - name : Login to Tencent Cloud
276- run : echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
277- - name : Create and push manifest for web (Tencent Cloud)
278- run : |
279- docker manifest create ccr.ccs.tencentyun.com/nexent-hub/nexent-web:beta \
280- ccr.ccs.tencentyun.com/nexent-hub/nexent-web:beta-amd64 \
281- ccr.ccs.tencentyun.com/nexent-hub/nexent-web:beta-arm64
282- docker manifest push ccr.ccs.tencentyun.com/nexent-hub/nexent-web:beta
196+ docker manifest push nexent/nexent-web:beta
0 commit comments