From 1ad02aa2a5340c17d4ca3ab3ce9c76a987d95eb8 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 13 Sep 2022 23:03:51 +0200 Subject: Added a buildah login step to the www-build job --- common/buildah-login.sh | 7 +++++++ www/www-build.yaml | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 common/buildah-login.sh 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" -- cgit v1.2.3