12
12
# types: [opened, synchronize, reopened]
13
13
# branches: [develop]
14
14
schedule :
15
- - cron : " 5 0 * * 0 " # every Sunday at 00:05
15
+ - cron : " 0 16 * * 5 " # UTC 16:00 = Beijing Time, Saturday at 00:00
16
16
workflow_dispatch : # allow to manually trigger the workflow
17
17
18
18
concurrency :
25
25
BRANCH : ${{ github.event.pull_request.base.ref }}
26
26
GITHUB_EVENT_NAME : ${{ github.event_name }}
27
27
TASK : PaddleFormers-CI-${{ github.event.pull_request.number }}-build-image
28
- image_base : " iregistry.baidu-int.com/paddlecloud/base-images:paddlecloud-ubuntu18.04-gcc8.2-cuda11.8-cudnn8.6-nccl2.15.5"
29
- no_proxy : " localhost,bj.bcebos.com,su.bcebos.com,bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
28
+ image_base : " ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:cuda126-dev"
30
29
31
30
jobs :
32
31
build-ci-docker-images :
33
32
name : build-ci-docker-images
34
33
if : github.ref == 'refs/heads/develop'
35
- runs-on : [self-hosted, ernie-8gpu]
34
+ runs-on : [self-hosted, ernie-8gpu-1 ]
36
35
outputs :
37
36
run_build : ${{ steps.set_flags.outputs.run_build }}
38
37
run_downstream : ${{ steps.set_flags.outputs.run_downstream }}
45
44
run : |
46
45
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
47
46
echo "container_name=${container_name}" >> ${{ github.env }}
48
- docker_image="${image_base}-latest "
47
+ docker_image="${image_base}"
49
48
docker run -d -t --name ${container_name} --net=host -v /dev/shm:/dev/shm --shm-size=32G \
50
49
-v $work_dir/../../..:$work_dir/../../.. \
51
50
-v $work_dir:/workspace \
55
54
-e COMMIT_ID \
56
55
-e work_dir \
57
56
-e no_proxy \
58
- -w /workspace --runtime=nvidia ${docker_image}
57
+ -w /workspace --runtime=nvidia --privileged ${docker_image}
59
58
60
59
- name : Download Code
61
60
env :
@@ -139,10 +138,9 @@ jobs:
139
138
- name : Write Dockerfile Inline
140
139
run : |
141
140
cat <<EOF > Dockerfile
142
- FROM iregistry.baidu-int.com/paddlecloud/base-images:paddlecloud-ubuntu18.04-gcc8.2-cuda11.8-cudnn8.6-nccl2.15.5-libsndfile
143
- RUN unlink /usr/bin/python3 && ln -sf python3.10 /usr/bin/python3
144
- RUN rm -rf /etc/pip.conf
141
+ FROM ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:cuda126-dev
145
142
RUN python -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
143
+ RUN python -m pip config set global.trusted-host pypi.tuna.tsinghua.edu.cn
146
144
RUN python -m pip install bce-python-sdk==0.8.74
147
145
COPY PaddleFormers/ /tmp/paddleformers/
148
146
WORKDIR /tmp/paddleformers
@@ -153,7 +151,6 @@ jobs:
153
151
RUN python -m pip install dist/*.whl
154
152
WORKDIR /
155
153
RUN rm -rf /tmp/paddleformers
156
- CMD ["python3"]
157
154
EOF
158
155
159
156
- name : Build Docker Image
@@ -180,7 +177,7 @@ jobs:
180
177
clean-ci-image :
181
178
name : clean-ci-image
182
179
needs : [build-ci-docker-images, test-ci-docker-images]
183
- runs-on : [self-hosted, ernie-8gpu]
180
+ runs-on : [self-hosted, ernie-8gpu-1 ]
184
181
steps :
185
182
- name : Remove CI Image
186
183
env :
@@ -203,5 +200,5 @@ jobs:
203
200
echo "$CONTAINERS"
204
201
fi
205
202
fi
206
- # 安全删除悬空镜像(无悬空镜像时跳过)
203
+ # Safely remove dangling images (skip if no dangling images exist)
207
204
docker images -f "dangling=true" -q | xargs -r docker rmi -f
0 commit comments