Skip to content

Commit 43fe17f

Browse files
committed
merge develop
2 parents b4f9d9c + a2ec2c4 commit 43fe17f

File tree

101 files changed

+9511
-4480
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+9511
-4480
lines changed

.github/workflows/publish_job.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,56 @@ jobs:
268268
ls
269269
python ${push_file} ${filename} ${target_path}
270270
271+
images_build:
272+
name: Run FD Image Build
273+
needs: [clone, publish_pre_check, build_sm8090]
274+
runs-on: [self-hosted, Docker-Build]
275+
if: |
276+
github.event.repository.fork == false &&
277+
(
278+
(github.event_name == 'push' && github.ref_type == 'tag') ||
279+
(github.event_name == 'workflow_dispatch' && github.ref_type == 'tag')
280+
)
281+
env:
282+
FD_VERSION: ${{ needs.publish_pre_check.outputs.fd_version }}
283+
PADDLEVERSION: ${{ needs.publish_pre_check.outputs.compile_use_paddle_version }}
284+
FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }}
285+
steps:
286+
- name: Images Build
287+
shell: bash
288+
env:
289+
docker_image: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-dailyupdate
290+
fd_archive_url: ${FASTDEPLOY_ARCHIVE_URL}
291+
run: |
292+
set -x
293+
FULL_REPO="${{ github.repository }}"
294+
REPO_NAME="${FULL_REPO##*/}"
295+
296+
# Clean the repository directory before starting
297+
docker run --rm --net=host -v $(pwd):/workspace -w /workspace \
298+
-e "REPO_NAME=${REPO_NAME}" \
299+
${docker_image} /bin/bash -c '
300+
if [ -d ${REPO_NAME} ]; then
301+
echo "Directory ${REPO_NAME} exists, removing it..."
302+
rm -rf ${REPO_NAME}*
303+
fi
304+
'
305+
wget -q ${fd_archive_url}
306+
tar -xf FastDeploy.tar.gz
307+
rm -rf FastDeploy.tar.gz
308+
cd FastDeploy
309+
git config --global user.name "FastDeployCI"
310+
git config --global user.email "[email protected]"
311+
git log -n 3 --oneline
312+
313+
PRODUCT_NAME=ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/fastdeploy-cuda-12.6:${FD_VERSION}
314+
docker build --no-cache -t ${PRODUCT_NAME} -f Dockerfile.gpu . \
315+
--network host \
316+
--build-arg PADDLE_VERSION=${PADDLEVERSION} \
317+
--build-arg FD_VERSION=${FD_VERSION}
318+
319+
docker push ${PRODUCT_NAME}
320+
271321
unittest_coverage:
272322
name: Run FastDeploy Unit Tests and Coverage
273323
needs: [clone,build_sm8090]

0 commit comments

Comments
 (0)