[api] Jenkinsfile.pjt

- 레파지토리 이미지 목록 조회
This commit is contained in:
2026-02-04 16:43:50 +09:00
parent bbedb7a46d
commit 494f18c451
+22
View File
@@ -224,5 +224,27 @@ pipeline {
}
}
stage('12) registry docker image cleanup') {
steps {
withCredentials([usernamePassword(
credentialsId: DOCKER_CRED,
usernameVariable: 'DOCKER_USER',
passwordVariable: 'DOCKER_PASS'
)]) {
sh '''
set -e
echo "[1/2] docker registry login"
echo "$DOCKER_PASS" | docker login ${REGISTRY_HOST} -u "$DOCKER_USER" --password-stdin
curl -u $REG_USER:$REG_PASS https://${REGISTRY_HOST}/v2/${IMAGE_REPO}/tags/list
docker logout ${REGISTRY_HOST}
'''
}
}
}
}
}