Skip to content

Commit bda839b

Browse files
eryajferyajf
authored andcommitted
build: 为镜像推送和构建阶段添加超时设置
1 parent f0ca689 commit bda839b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.cnb/workflows/build-docker-images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ main:
1515
ALIHUB_IMAGE_REPONAME: eryajf
1616
stages:
1717
- name: 🐋 推送镜像
18+
timeout: 3h
1819
script: |
1920
echo ${DOCKERHUB_TOKEN} | docker login -u ${DOCKERHUB_USERNAME} --password-stdin
2021
echo ${ALIHUB_TOKEN} | docker login -u ${ALIHUB_USERNAME} --password-stdin ${ALIHUB_URL}

.cnb/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ $:
1313
ALIHUB_IMAGE_REPONAME: eryajf
1414
stages:
1515
- name: 🐋 推送镜像
16+
timeout: 3h
1617
script: |
1718
docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_TOKEN}
1819
docker login -u ${ALIHUB_USERNAME} -p ${ALIHUB_TOKEN} ${ALIHUB_URL}
@@ -33,11 +34,13 @@ $:
3334
-t ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}:${CNB_BRANCH}_`date "+%Y%m%d%H%M%S"` \
3435
--platform=linux/arm64,linux/amd64 . --push
3536
- name: 📦 构建制品
37+
timeout: 3h
3638
image: docker.cnb.cool/znb/images/debian:new
3739
script: |
3840
docker cp $(docker create --rm docker.cnb.cool/opsre/go-ldap-admin-ui):/app/dist public/static/dist
3941
make gox-all
4042
- name: release upload attachments
43+
timeout: 3h
4144
image: cnbcool/attachments:latest
4245
settings:
4346
attachments:

0 commit comments

Comments
 (0)