Skip to content

Commit

Permalink
refactor: if statement for gerrit secret name
Browse files Browse the repository at this point in the history
Signed-off-by: sebastien.heurtematte <[email protected]>
  • Loading branch information
heurtematte authored and fredg02 committed Nov 30, 2023
1 parent 6cc7004 commit d5dc2b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions secrets/create_gerrit_ssh_keys_secret.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ project_name="${1:-}"
site="${2:-git.eclipse.org}"

short_name=${project_name##*.}
secret_name="${site}-ssh-keys"
[[ "${site}" == "git.eclipse.org" ]] && secret_name="gerrit-ssh-keys"

if [[ "${site}" == "git.eclipse.org" ]]; then
secret_name="gerrit-ssh-keys"
else
secret_name="${site}-ssh-keys"
fi

pw_store_path=bots/${project_name}/${site}

Expand Down

0 comments on commit d5dc2b5

Please sign in to comment.