Skip to content

ci/gha: fix downloading Release.key#4079

Merged
cyphar merged 1 commit into
opencontainers:mainfrom
kolyshkin:fix-gha-ci
Oct 20, 2023
Merged

ci/gha: fix downloading Release.key#4079
cyphar merged 1 commit into
opencontainers:mainfrom
kolyshkin:fix-gha-ci

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

@kolyshkin kolyshkin commented Oct 20, 2023

For some reason, since today

curl -fSsl https://download.opensuse.org/repositories/devel:/tools:/criu/xUbuntu_20.04/Release.key

does not produce any error, but there's no output either.

Switch to wget. Add -L to follow 3xx redirects.

While at it, ditch apt-key as it's not supposed to be used that way.

Fixes: #4078

@kolyshkin kolyshkin marked this pull request as ready for review October 20, 2023 00:32
@kolyshkin kolyshkin added this to the 1.2.0 milestone Oct 20, 2023
@kolyshkin kolyshkin added the backport/1.1-pr A backport PR to release-1.1 label Oct 20, 2023
@kolyshkin
Copy link
Copy Markdown
Contributor Author

Looks like it fixes the issue (I'm not sure what's wrong with curl or download.opensuse.org but apparently switching to wget works.

@lifubang
Copy link
Copy Markdown
Member

I'm not sure what's wrong with curl or download.opensuse.org

using -v to look what's happened:
< HTTP/2 302
< cache-control: public, max-age=144
< content-length: 0
< date: Fri, 20 Oct 2023 00:44:31 GMT
< location: https://downloadcontentcdn.opensuse.org/repositories/devel:/tools:/criu/xUbuntu_20.04/Release.key
< server: Apache
<

So, add -L to follow 302 redirection maybe fix it too.

@lifubang
Copy link
Copy Markdown
Member

I'm surprising that, in the past there was no cdn for download site in opensuse.org?

Since today, the URL from download.opensuse.org started returning a
HTTP 302 redirect, so -L option for curl is needed to follow it.

While at it, remove apt-key as per its man page recommendation:

> Note: Instead of using this command a keyring should be placed
> directly in the /etc/apt/trusted.gpg.d/ directory with a descriptive
> name and either "gpg" or "asc" as file extension.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin
Copy link
Copy Markdown
Contributor Author

So, add -L to follow 302 redirection maybe fix it too.

Thanks, updated to use curl -fSsLl.

Copy link
Copy Markdown
Member

@cyphar cyphar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyphar cyphar merged commit 27eb67a into opencontainers:main Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci backport/1.1-pr A backport PR to release-1.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GHA CI broken

3 participants