The build fails due to apt-key being deprecated and automatically switching to "keyring files in trusted.gpg.d" with error "gpg: no valid OpenPGP data found."
This can be duplicated by cloning the images repository, and running
$ go install github.com/markbates/pkger/cmd/pkger@latest
$ go generate github.com/aerokube/images
$ go build
The build fails due to apt-key being deprecated and automatically switching to "keyring files in trusted.gpg.d" with error "gpg: no valid OpenPGP data found."
This can be duplicated by cloning the images repository, and running
The example build command on https://aerokube.com/images/latest/#_building_images
AND
Trying to build chromium fails when using build-chromium.sh.
https://github.com/aerokube/images/blob/cad20941c30643bed44a909b935d094de14e2b6b/build-chromium.sh#L1-L24
Stack overflow issue has verified this for newer ubuntu versions. https://stackoverflow.com/questions/68992799/warning-apt-key-is-deprecated-manage-keyring-files-in-trusted-gpg-d-instead
The location of the issue for building chrome is: https://github.com/aerokube/images/blob/cad20941c30643bed44a909b935d094de14e2b6b/static/chrome/apt/Dockerfile#L9C1-L18C53
The location of the issue for building chromium is, chromium doesn't have any keys imported at all: https://github.com/aerokube/images/blob/cad20941c30643bed44a909b935d094de14e2b6b/static/chromium/apt/Dockerfile#L8C1-L16C49
I'm not familiar with this, as I tried fixing the problem in a separate branch using the recommended fixes available online with no luck.