@@ -147,6 +147,46 @@ jobs:
147147 - name: Push web image (arm64) to Tencent Cloud
148148 run: docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-web:arm64
149149
150+ build-and-push-terminal-amd64:
151+ runs-on: ${{ fromJson(inputs.runner_label_json) }}
152+ steps:
153+ - name: Set up Docker Buildx
154+ run: |
155+ if ! docker buildx inspect nexent_builder > /dev/null 2>&1; then
156+ docker buildx create --name nexent_builder --use
157+ else
158+ docker buildx use nexent_builder
159+ fi
160+ - name: Checkout code
161+ uses: actions/checkout@v4
162+ - name: Build terminal image (amd64) and load locally
163+ run: |
164+ docker buildx build --platform linux/amd64 --load -t ccr.ccs.tencentyun.com/nexent-hub/nexent-terminal:amd64 -f make/terminal/Dockerfile --build-arg MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple --build-arg APT_MIRROR=tsinghua .
165+ - name: Login to Tencent Cloud
166+ run: echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
167+ - name: Push terminal image (amd64) to Tencent Cloud
168+ run: docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-terminal:amd64
169+
170+ build-and-push-terminal-arm64:
171+ runs-on: ${{ fromJson(inputs.runner_label_json) }}
172+ steps:
173+ - name: Set up Docker Buildx
174+ run: |
175+ if ! docker buildx inspect nexent_builder > /dev/null 2>&1; then
176+ docker buildx create --name nexent_builder --use
177+ else
178+ docker buildx use nexent_builder
179+ fi
180+ - name: Checkout code
181+ uses: actions/checkout@v4
182+ - name: Build terminal image (arm64) and load locally
183+ run: |
184+ docker buildx build --platform linux/arm64 --load -t ccr.ccs.tencentyun.com/nexent-hub/nexent-terminal:arm64 -f make/terminal/Dockerfile --build-arg MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple --build-arg APT_MIRROR=tsinghua .
185+ - name: Login to Tencent Cloud
186+ run: echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
187+ - name: Push terminal image (arm64) to Tencent Cloud
188+ run: docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-terminal:arm64
189+
150190 manifest-push-main:
151191 runs-on: ubuntu-latest
152192 needs:
@@ -190,4 +230,19 @@ jobs:
190230 docker manifest create ccr.ccs.tencentyun.com/nexent-hub/nexent-web:latest \
191231 ccr.ccs.tencentyun.com/nexent-hub/nexent-web:amd64 \
192232 ccr.ccs.tencentyun.com/nexent-hub/nexent-web:arm64
193- docker manifest push ccr.ccs.tencentyun.com/nexent-hub/nexent-web:latest
233+ docker manifest push ccr.ccs.tencentyun.com/nexent-hub/nexent-web:latest
234+
235+ manifest-push-terminal:
236+ runs-on: ubuntu-latest
237+ needs:
238+ - build-and-push-terminal-amd64
239+ - build-and-push-terminal-arm64
240+ steps:
241+ - name: Login to Tencent Cloud
242+ run: echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
243+ - name: Create and push manifest for terminal (Tencent Cloud)
244+ run: |
245+ docker manifest create ccr.ccs.tencentyun.com/nexent-hub/nexent-terminal:latest \
246+ ccr.ccs.tencentyun.com/nexent-hub/nexent-terminal:amd64 \
247+ ccr.ccs.tencentyun.com/nexent-hub/nexent-terminal:arm64
248+ docker manifest push ccr.ccs.tencentyun.com/nexent-hub/nexent-terminal:latest
0 commit comments