diff options
author | Julien Dessaux | 2022-09-13 23:03:51 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-09-13 23:34:27 +0200 |
commit | 1ad02aa2a5340c17d4ca3ab3ce9c76a987d95eb8 (patch) | |
tree | 19d3015a17a1a6c977e50b843a01bb9ee15993b0 | |
parent | Renamed www-deploy to www-build to reflect what it really does (diff) | |
download | ev-scripts-1ad02aa2a5340c17d4ca3ab3ce9c76a987d95eb8.tar.gz ev-scripts-1ad02aa2a5340c17d4ca3ab3ce9c76a987d95eb8.tar.bz2 ev-scripts-1ad02aa2a5340c17d4ca3ab3ce9c76a987d95eb8.zip |
Added a buildah login step to the www-build job
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" |