[Tool] Change the mode of image update to serial (#54494)

This commit is contained in:
andyziye 2024-12-30 17:21:59 +08:00 committed by GitHub
parent 771770c1d3
commit 36dea3e193
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 7 deletions

View File

@ -100,11 +100,6 @@ jobs:
runs-on: [self-hosted, normal]
name: Thirdparty Update Image
if: github.event.pull_request.merged == true
continue-on-error: false
strategy:
fail-fast: false
matrix:
linux: [ centos7, ubuntu ]
env:
PR_NUMBER: ${{ github.event.number }}
BRANCH: ${{ github.base_ref }}
@ -123,11 +118,16 @@ jobs:
- 'thirdparty/**'
- 'docker/dockerfiles/dev-env/dev-env.Dockerfile'
- name: update image (${{ matrix.linux }})
- name: update image - ubuntu
if: steps.changes.outputs.thirdparty == 'true'
run: |
rm -rf ./ci-tool && cp -rf /var/lib/ci-tool ./ci-tool && cd ci-tool && git pull && source lib/init.sh
./bin/elastic-update-image.sh $BRANCH $PR_NUMBER ${{ matrix.linux }}
./bin/elastic-update-image.sh $BRANCH $PR_NUMBER ubuntu
- name: update image - centos7
run: |
cd ci-tool && source lib/init.sh
./bin/elastic-update-image.sh $BRANCH $PR_NUMBER centos7
- name: Clean ENV
if: always()