Skip to content

Commit 049e0e5

Browse files
committed
Fix login consolidation for buildah-rhtap
In #158, the login cosolidation didn't take into account the buildah-rhtap script. This caused the `cosign` command running within that script to fail to upload SBOMs. Signed-off-by: Luiz Carvalho <[email protected]>
1 parent f2ecc95 commit 049e0e5

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)