Skip to content

Commit c485927

Browse files
authored
Merge pull request #163 from lcarva/fix-buildah-rhtap-login
Fix login consolidation for buildah-rhtap
2 parents cde0091 + 049e0e5 commit c485927

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

rhtap/buildah-rhtap.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,7 @@ source $SCRIPTDIR/common.sh
77

88
function login() {
99
echo "Running $TASK_NAME:login"
10-
IMAGE_REGISTRY="${IMAGE%%/*}"
11-
prepare-registry-user-pass $IMAGE_REGISTRY
12-
buildah login --username="$IMAGE_REGISTRY_USER" --password="$IMAGE_REGISTRY_PASSWORD" $IMAGE_REGISTRY
13-
ERR=$?
14-
if [ $ERR != 0 ]; then
15-
echo "Failed buildah login $IMAGE_REGISTRY for user $IMAGE_REGISTRY_USER "
16-
exit $ERR
17-
fi
10+
registry-login "$IMAGE"
1811
}
1912

2013
function build() {

0 commit comments

Comments
 (0)