Skip to content

Commit

Permalink
fix: arm-based gpu image (#33275)
Browse files Browse the repository at this point in the history
Signed-off-by: Liang Huang <sammy.huang@zilliz.com>
  • Loading branch information
yellow-shine committed May 22, 2024
1 parent fc765c6 commit 310bfe7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ci/jenkins/PublishArmBasedGPUImages.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ pipeline {

steps {
script {
sh """
git config --global --add safe.directory /home/jenkins/agent/workspace
"""

def date = sh(returnStdout: true, script: 'date +%Y%m%d').trim()
def gitShortCommit = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()

sh """
set -a # automatically export all variables from .env
. .env
Expand All @@ -41,9 +48,6 @@ pipeline {
docker run --net=host -v \$(pwd):/root/milvus -v /root/.conan:/root/.conan -w /root/milvus milvusdb/milvus-env:gpu-ubuntu22.04-\${GPU_DATE_VERSION} sh -c "make clean && make gpu-install"
"""

def date = sh(returnStdout: true, script: 'date +%Y%m%d').trim()
def gitShortCommit = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()

withCredentials([usernamePassword(credentialsId: "${env.DOCKER_CREDENTIALS_ID}", usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) {
sh 'docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}'
sh """
Expand Down

0 comments on commit 310bfe7

Please sign in to comment.