From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ACD37158094 for ; Mon, 11 Jul 2022 00:53:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C0F44E0D45; Mon, 11 Jul 2022 00:53:22 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A9F99E0D45 for ; Mon, 11 Jul 2022 00:53:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AA104335D06 for ; Mon, 11 Jul 2022 00:53:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0D283391 for ; Mon, 11 Jul 2022 00:53:20 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1657500776.f8df7314768c5f5ee309ae63dcabd22442cce50b.sam@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: keyrings-export.bash X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: f8df7314768c5f5ee309ae63dcabd22442cce50b X-VCS-Branch: master Date: Mon, 11 Jul 2022 00:53:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ca612e8b-8ace-4f81-8a99-f6c7534342a5 X-Archives-Hash: 190efcfa2889a252a6b035619bc1a45f commit: f8df7314768c5f5ee309ae63dcabd22442cce50b Author: Sam James gentoo org> AuthorDate: Mon Jul 11 00:52:56 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Jul 11 00:52:56 2022 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=f8df7314 keyrings-export.bash: make weekly snapshots of keyring exports Needed for making a sec-keys/ package. Signed-off-by: Sam James gentoo.org> keyrings-export.bash | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/keyrings-export.bash b/keyrings-export.bash index f07df83..c9d4715 100755 --- a/keyrings-export.bash +++ b/keyrings-export.bash @@ -41,4 +41,16 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \ "${INFRA_DEVS[@]}" \ "${RETIRED_DEVS[@]}" +for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do + timestamp=$(date +%Y%m%d) + + # Don't clobber existing timestamped keys for this period (weekly) + # if we're running several times a day. + if [[ -f "${OUTPUT_DIR}"/${key}-${timestamp}.gpg ]] ; then + continue + fi + + cp "${OUTPUT_DIR}"/${key}.gpg "${OUTPUT_DIR}"/${key}-${timestamp}.gpg +done + clean_tmp