aboutsummaryrefslogtreecommitdiff
path: root/common/buildah-login.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/buildah-login.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/buildah-login.sh b/common/buildah-login.sh
new file mode 100644
index 0000000..f4a6e9b
--- /dev/null
+++ b/common/buildah-login.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+LOGIN=`cat $EVENTLINE_DIR/identities/quay-io/login`
+PASSWORD=`cat $EVENTLINE_DIR/identities/quay-io/password`
+
+buildah login -u "${LOGIN}" -p "${PASSWORD}" quay.io