14 Commits
Author SHA1 Message Date
gVisor bot 7e31274a88 Merge pull request #8095 from amarcu5:master
PiperOrigin-RevId: 503524045
2023-01-20 14:37:58 -08:00
Ayush RanjanandgVisor bot 3091691cdf Preserve environment when running sudo commands in make_apt.sh.
This is so that `DEBIAN_FRONTEND=noninteractive` env var which has been set
is in effect while running apt-get commands.

PiperOrigin-RevId: 488432544
2022-11-14 12:10:24 -08:00
amarcu5andGitHub 5f1c5dd576 Add "Origin: Google" to the APT repo metadata 2022-10-17 18:02:45 +01:00
Adin ScannellandgVisor bot 6cf7c3727e Stop clobbering the signed packages.
Fixes #5635

PiperOrigin-RevId: 446002436
2022-05-02 12:37:18 -07:00
Ayush RanjanandgVisor bot b5bc965876 Set DEBIAN_FRONTEND to be noninteractive in make_apt.sh.
This would prevent timeout issues where apt-get gets stuck on some prompt.

PiperOrigin-RevId: 435558241
2022-03-18 00:06:12 -07:00
Adin ScannellandgVisor bot 67ea404942 Attempt to fix gpg package signing (redux).
The semantics for gpg seem to vary in subtle way across systems. This
attempts to identify the key fingerprint on import, since listing the
secret keys afterwards does not appear to have the intended effect.

PiperOrigin-RevId: 432067329
2022-03-02 17:26:02 -08:00
Adin ScannellandgVisor bot aaa601d80c Fix repository.
Some versions of gpg don't select the key as the default after import,
and it must be specified explicitly. Select the last imported key.

PiperOrigin-RevId: 432009606
2022-03-02 13:07:11 -08:00
Andrei Vagin ba46a8c1cf make/release: Sign a package only if it isn't signed yet.
We can generate more than one apt repo for the same package.  If we will
sign a package again, its file will be changed and all hashes that have
been generated before will be invalid.
2021-03-11 21:59:51 -08:00
Adin ScannellandgVisor bot 054a63cfe0 Fix empty Packages file for APT repository.
This change also adds an extra sanity check to the make_apt.sh script,
in order to ensure that this simple mistake does not occur again.

PiperOrigin-RevId: 355101754
2021-02-01 23:03:58 -08:00
Adin ScannellandgVisor bot 8c3fdeaf8f Support releasing aarch64 builds.
This change works around an issue in rules_pkg, described here:
  https://github.com/bazelbuild/rules_pkg/pull/263

PiperOrigin-RevId: 350869030
2021-01-08 18:03:17 -08:00
Ayush RanjanandgVisor bot e37fe2c110 Fix make_apt script.
This change makes the following fixes:
- When creating a test repo.key, create a secret keyring as other workflows
  also use secret keyrings only.
- We should not be using both --keyring and --secret-keyring options. Just use
  --secret-keyring.
- Pass homedir to all gpg commands. dpkg-sig takes an arg -g which stands for
  gpgopts. So we need to pass the homedir there too.

PiperOrigin-RevId: 330443280
2020-09-07 21:18:22 -07:00
Ayush RanjanandgVisor bot a60a9e69ac Fix the release workflow.
PiperOrigin-RevId: 330049242
2020-09-03 21:45:10 -07:00
Adin ScannellandgVisor bot 8e4b69e007 Provide --secret-keyring parameter (for newer gpg).
PiperOrigin-RevId: 328403914
2020-08-25 14:29:55 -07:00
Adin ScannellandgVisor bot 798329a10b Fix the APT repository structure.
This change fixes the apt repository structure to avoid emiting warnings on
Ubuntu 18.04 (and potentially other versions). This requires a slight refactor
of the repository generation scripts, since we can no longer copy the same
release files for different "suites".

This should avoid the warning by setting the suite to the distribution:
  https://github.com/Debian/apt/blob/master/apt-pkg/metaindex.cc#L75

This change also moves over to the standardized Makefile entrypoint, which
makes settings clearer and enables local testing.

PiperOrigin-RevId: 313817017
2020-05-29 11:30:02 -07:00