diff options
Diffstat (limited to '')
-rw-r--r-- | common/buildah-login.sh | 7 | ||||
-rw-r--r-- | www/www-build.yaml | 5 |
2 files changed, 12 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 diff --git a/www/www-build.yaml b/www/www-build.yaml index ae9683d..f2a4dcb 100644 --- a/www/www-build.yaml +++ b/www/www-build.yaml @@ -1,5 +1,8 @@ name: "www-build" steps: + - label: buildah login + script: + path: "../common/buildah-login.sh" - label: git clone script: path: "../common/git-clone.sh" @@ -22,6 +25,8 @@ steps: path: "../common/clean.sh" arguments: - "www-build" +identities: + - quay-io runner: identity: "ssh-myth" name: "ssh" |