Skip to content

Commit

Permalink
chore(build): remove the download link from openssl.org and add a fal…
Browse files Browse the repository at this point in the history
…lback url for old sources (#13423)
  • Loading branch information
fffonion authored Aug 2, 2024
1 parent 6ab6b73 commit f57ad6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/openresty/openssl/openssl_repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ load("@kong_bindings//:variables.bzl", "KONG_VAR")
def openssl_repositories():
version = KONG_VAR["OPENSSL"]

openssl_verion_uri = version
if version.startswith("3"):
# for 3.x only use the first two digits
openssl_verion_uri = ".".join(version.split(".")[:2])

maybe(
http_archive,
name = "openssl",
build_file = "//build/openresty/openssl:BUILD.bazel",
sha256 = KONG_VAR["OPENSSL_SHA256"],
strip_prefix = "openssl-" + version,
urls = [
"https://www.openssl.org/source/openssl-" + version + ".tar.gz",
"https://github.com/openssl/openssl/releases/download/openssl-" + version + "/openssl-" + version + ".tar.gz",
"https://openssl.org/source/old/3.1/openssl-" + version + ".tar.gz",
],
)

1 comment on commit f57ad6f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Bazel Build

Docker image available kong/kong:f57ad6f8d0185312afc224025504c1bc76021ea9
Artifacts available https://github.com/Kong/kong/actions/runs/10209698690

Please sign in to comment.