mirror of
https://github.com/containers/podman.git
synced 2025-06-22 01:48:54 +08:00
Merge pull request #4070 from cevich/podbot_creds
Cirrus: Update podbot credentials
This commit is contained in:
@ -55,7 +55,7 @@ env:
|
|||||||
#### Credentials and other secret-sauces, decrypted at runtime when authorized.
|
#### Credentials and other secret-sauces, decrypted at runtime when authorized.
|
||||||
####
|
####
|
||||||
# Freenode IRC credentials for posting status messages
|
# Freenode IRC credentials for posting status messages
|
||||||
IRCID: ENCRYPTED[e87bba62a8e924dc70bdb2b66b16f6ab4a60d2870e6e5534ae9e2b0076f483c71c84091c655ca239101e6816c5ec0883]
|
IRCID: ENCRYPTED[1913f8a4572b6a6d2036232327789c4f6c0d98cde53f0336d860cd219b4cbd83863eefd93471aef8fa1079d4698e382d]
|
||||||
# Needed to build GCE images, within a GCE VM
|
# Needed to build GCE images, within a GCE VM
|
||||||
SERVICE_ACCOUNT: ENCRYPTED[99e9a0b1c23f8dd29e83dfdf164f064cfd17afd9b895ca3b5e4c41170bd4290a8366fe2ad8e7a210b9f751711d1d002a]
|
SERVICE_ACCOUNT: ENCRYPTED[99e9a0b1c23f8dd29e83dfdf164f064cfd17afd9b895ca3b5e4c41170bd4290a8366fe2ad8e7a210b9f751711d1d002a]
|
||||||
# User ID for cirrus to ssh into VMs
|
# User ID for cirrus to ssh into VMs
|
||||||
|
@ -18,18 +18,21 @@ then
|
|||||||
then
|
then
|
||||||
SHARANGE="${CIRRUS_BASE_SHA}..${CIRRUS_CHANGE_IN_REPO}"
|
SHARANGE="${CIRRUS_BASE_SHA}..${CIRRUS_CHANGE_IN_REPO}"
|
||||||
EXCLUDE_RE='merge-robot'
|
EXCLUDE_RE='merge-robot'
|
||||||
|
EMAILCSET='[:alnum:]-+_@.'
|
||||||
AUTHOR_NICKS=$(egrep -v '(^[[:space:]]*$)|(^[[:space:]]*#)' "$AUTHOR_NICKS_FILEPATH" | sort -u)
|
AUTHOR_NICKS=$(egrep -v '(^[[:space:]]*$)|(^[[:space:]]*#)' "$AUTHOR_NICKS_FILEPATH" | sort -u)
|
||||||
# Depending on branch-state, it's possible SHARANGE could be _WAY_ too big
|
# Depending on branch-state, it's possible SHARANGE could be _WAY_ too big
|
||||||
MAX_NICKS=10
|
MAX_NICKS=10
|
||||||
# newline separated
|
# newline separated
|
||||||
GITLOG="git log --format='%ae'"
|
GITLOG="git log --format='%ae'"
|
||||||
COMMIT_AUTHORS=$($GITLOGt $SHARANGE || $GITLOG -1 HEAD | \
|
COMMIT_AUTHORS=$($GITLOG $SHARANGE || $GITLOG -1 HEAD | \
|
||||||
sort -u | \
|
sort -u | \
|
||||||
egrep -v "$EXCLUDE_RE" | \
|
egrep -v "$EXCLUDE_RE" | \
|
||||||
|
tr --delete --complement "$EMAILCSET[:space:]" | \
|
||||||
tail -$MAX_NICKS)
|
tail -$MAX_NICKS)
|
||||||
|
|
||||||
for c_email in $COMMIT_AUTHORS
|
for c_email in $COMMIT_AUTHORS
|
||||||
do
|
do
|
||||||
|
c_email=$(echo "$c_email" | tr --delete --complement "$EMAILCSET")
|
||||||
echo -e "\tExamining $c_email"
|
echo -e "\tExamining $c_email"
|
||||||
NICK=$(echo "$AUTHOR_NICKS" | grep -m 1 "$c_email" | \
|
NICK=$(echo "$AUTHOR_NICKS" | grep -m 1 "$c_email" | \
|
||||||
awk --field-separator ',' '{print $2}' | tr -d '[[:blank:]]')
|
awk --field-separator ',' '{print $2}' | tr -d '[[:blank:]]')
|
||||||
|
Reference in New Issue
Block a user