Skip to content

Commit ef93c8e

Browse files
committed
🔨 push terminal images when running GitHub action
1 parent 6479e39 commit ef93c8e

4 files changed

Lines changed: 82 additions & 18 deletions

File tree

‎.github/workflows/docker-build-push-beta.yml‎

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,46 @@ jobs:
150150
- name: Push web image (arm64) to DockerHub
151151
run: docker push nexent/nexent-web:beta-arm64
152152

153+
build-and-push-terminal-amd64:
154+
runs-on: ubuntu-latest
155+
steps:
156+
- name: Set up Docker Buildx
157+
run: |
158+
if ! docker buildx inspect nexent_builder > /dev/null 2>&1; then
159+
docker buildx create --name nexent_builder --use
160+
else
161+
docker buildx use nexent_builder
162+
fi
163+
- name: Checkout code
164+
uses: actions/checkout@v4
165+
- name: Build terminal image (amd64) and load locally
166+
run: |
167+
docker buildx build --platform linux/amd64 -t nexent/nexent-ubuntu-terminal:beta-amd64 --load -f make/terminal/Dockerfile .
168+
- name: Login to DockerHub
169+
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
170+
- name: Push terminal image (amd64) to DockerHub
171+
run: docker push nexent/nexent-ubuntu-terminal:beta-amd64
172+
173+
build-and-push-terminal-arm64:
174+
runs-on: ubuntu-latest
175+
steps:
176+
- name: Set up Docker Buildx
177+
run: |
178+
if ! docker buildx inspect nexent_builder > /dev/null 2>&1; then
179+
docker buildx create --name nexent_builder --use
180+
else
181+
docker buildx use nexent_builder
182+
fi
183+
- name: Checkout code
184+
uses: actions/checkout@v4
185+
- name: Build terminal image (arm64) and load locally
186+
run: |
187+
docker buildx build --platform linux/arm64 -t nexent/nexent-ubuntu-terminal:beta-arm64 --load -f make/terminal/Dockerfile .
188+
- name: Login to DockerHub
189+
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
190+
- name: Push terminal image (arm64) to DockerHub
191+
run: docker push nexent/nexent-ubuntu-terminal:beta-arm64
192+
153193
manifest-push-main:
154194
runs-on: ubuntu-latest
155195
needs:
@@ -193,4 +233,19 @@ jobs:
193233
docker manifest create nexent/nexent-web:beta \
194234
nexent/nexent-web:beta-amd64 \
195235
nexent/nexent-web:beta-arm64
196-
docker manifest push nexent/nexent-web:beta
236+
docker manifest push nexent/nexent-web:beta
237+
238+
manifest-push-terminal:
239+
runs-on: ubuntu-latest
240+
needs:
241+
- build-and-push-terminal-amd64
242+
- build-and-push-terminal-arm64
243+
steps:
244+
- name: Login to DockerHub
245+
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
246+
- name: Create and push manifest for terminal (DockerHub)
247+
run: |
248+
docker manifest create nexent/nexent-ubuntu-terminal:beta \
249+
nexent/nexent-ubuntu-terminal:beta-amd64 \
250+
nexent/nexent-ubuntu-terminal:beta-arm64
251+
docker manifest push nexent/nexent-ubuntu-terminal:beta

‎.github/workflows/docker-build-push-mainland.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ jobs:
161161
uses: actions/checkout@v4
162162
- name: Build terminal image (amd64) and load locally
163163
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 .
164+
docker buildx build --platform linux/amd64 --load -t ccr.ccs.tencentyun.com/nexent-hub/nexent-ubuntu-terminal:amd64 -f make/terminal/Dockerfile --build-arg MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple .
165165
- name: Login to Tencent Cloud
166166
run: echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
167167
- name: Push terminal image (amd64) to Tencent Cloud
168-
run: docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-terminal:amd64
168+
run: docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-ubuntu-terminal:amd64
169169

170170
build-and-push-terminal-arm64:
171171
runs-on: ${{ fromJson(inputs.runner_label_json) }}
@@ -181,11 +181,11 @@ jobs:
181181
uses: actions/checkout@v4
182182
- name: Build terminal image (arm64) and load locally
183183
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 .
184+
docker buildx build --platform linux/arm64 --load -t ccr.ccs.tencentyun.com/nexent-hub/nexent-ubuntu-terminal:arm64 -f make/terminal/Dockerfile --build-arg MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple .
185185
- name: Login to Tencent Cloud
186186
run: echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
187187
- name: Push terminal image (arm64) to Tencent Cloud
188-
run: docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-terminal:arm64
188+
run: docker push ccr.ccs.tencentyun.com/nexent-hub/nexent-ubuntu-terminal:arm64
189189

190190
manifest-push-main:
191191
runs-on: ubuntu-latest
@@ -242,7 +242,7 @@ jobs:
242242
run: echo ${{ secrets.TCR_PASSWORD }} | docker login ccr.ccs.tencentyun.com --username=${{ secrets.TCR_USERNAME }} --password-stdin
243243
- name: Create and push manifest for terminal (Tencent Cloud)
244244
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
245+
docker manifest create ccr.ccs.tencentyun.com/nexent-hub/nexent-ubuntu-terminal:latest \
246+
ccr.ccs.tencentyun.com/nexent-hub/nexent-ubuntu-terminal:amd64 \
247+
ccr.ccs.tencentyun.com/nexent-hub/nexent-ubuntu-terminal:arm64
248+
docker manifest push ccr.ccs.tencentyun.com/nexent-hub/nexent-ubuntu-terminal:latest

‎.github/workflows/docker-build-push-overseas.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ jobs:
161161
uses: actions/checkout@v4
162162
- name: Build terminal image (amd64) and load locally
163163
run: |
164-
docker buildx build --platform linux/amd64 -t nexent/nexent-terminal:amd64 --load -f make/terminal/Dockerfile .
164+
docker buildx build --platform linux/amd64 -t nexent/nexent-ubuntu-terminal:amd64 --load -f make/terminal/Dockerfile .
165165
- name: Login to DockerHub
166166
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
167167
- name: Push terminal image (amd64) to DockerHub
168-
run: docker push nexent/nexent-terminal:amd64
168+
run: docker push nexent/nexent-ubuntu-terminal:amd64
169169

170170
build-and-push-terminal-arm64:
171171
runs-on: ${{ fromJson(inputs.runner_label_json) }}
@@ -181,11 +181,11 @@ jobs:
181181
uses: actions/checkout@v4
182182
- name: Build terminal image (arm64) and load locally
183183
run: |
184-
docker buildx build --platform linux/arm64 -t nexent/nexent-terminal:arm64 --load -f make/terminal/Dockerfile .
184+
docker buildx build --platform linux/arm64 -t nexent/nexent-ubuntu-terminal:arm64 --load -f make/terminal/Dockerfile .
185185
- name: Login to DockerHub
186186
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
187187
- name: Push terminal image (arm64) to DockerHub
188-
run: docker push nexent/nexent-terminal:arm64
188+
run: docker push nexent/nexent-ubuntu-terminal:arm64
189189

190190
manifest-push-main:
191191
runs-on: ubuntu-latest
@@ -242,7 +242,7 @@ jobs:
242242
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u nexent --password-stdin
243243
- name: Create and push manifest for terminal (DockerHub)
244244
run: |
245-
docker manifest create nexent/nexent-terminal:latest \
246-
nexent/nexent-terminal:amd64 \
247-
nexent/nexent-terminal:arm64
248-
docker manifest push nexent/nexent-terminal:latest
245+
docker manifest create nexent/nexent-ubuntu-terminal:latest \
246+
nexent/nexent-ubuntu-terminal:amd64 \
247+
nexent/nexent-ubuntu-terminal:arm64
248+
docker manifest push nexent/nexent-ubuntu-terminal:latest

‎.github/workflows/docker-build.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,13 @@ jobs:
4141
uses: actions/checkout@v4
4242

4343
- name: Build web frontend image
44-
run: docker build --build-arg MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple --progress=plain -t nexent/nexent-web -f make/web/Dockerfile .
44+
run: docker build --build-arg MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple --progress=plain -t nexent/nexent-web -f make/web/Dockerfile .
45+
46+
build-terminal:
47+
runs-on: ${{ fromJson(inputs.runner_label_json) }}
48+
steps:
49+
- name: Checkout code
50+
uses: actions/checkout@v4
51+
52+
- name: Build terminal image
53+
run: docker build --build-arg MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple --progress=plain -t nexent/nexent-ubuntu-terminal -f make/terminal/Dockerfile .

0 commit comments

Comments
 (0)