[api] Jenkinsfile.pjt
- 레파지토리 이미지 목록 조회
This commit is contained in:
@@ -234,8 +234,6 @@ pipeline {
|
||||
sh '''
|
||||
set -e
|
||||
|
||||
echo "[1/2] docker registry login"
|
||||
echo "$DOCKER_PASS" | docker login ${REGISTRY_HOST} -u "$DOCKER_USER" --password-stdin
|
||||
|
||||
TAGS_TO_DELETE=$(curl -s -u "$DOCKER_USER:$DOCKER_PASS" https://${REGISTRY_HOST}/v2/${IMAGE_REPO}/tags/list | jq -r '.tags[]' | grep -E '^[0-9]+' | sort -t- -k1,1n | head -n -5)
|
||||
|
||||
@@ -245,7 +243,6 @@ pipeline {
|
||||
echo "[DRY] $TAG -> $DIGEST"
|
||||
done
|
||||
|
||||
docker logout ${REGISTRY_HOST}
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user