feat: ensure Ubuntu Noble is properly supported by the Dokku release process

Also update doc references to use 24.04 in examples where possible.
This commit is contained in:
Jose Diaz-Gonzalez
2024-08-25 23:30:41 -04:00
parent c9cf54b928
commit ab802cb4dd
12 changed files with 22 additions and 22 deletions

View File

@@ -15,7 +15,7 @@ def download_file(filename, url):
def upload_file(filename):
versions = ["jammy"]
versions = ["noble"]
cmd_template = "package_cloud push dokku/dokku/ubuntu/{0} {1}"
for version in versions:
cmd = cmd_template.format(version, filename)
@@ -25,7 +25,7 @@ def upload_file(filename):
def main():
auth = HTTPBasicAuth(PACKAGECLOUD_TOKEN, "")
base = requests.get(
"https://packagecloud.io/api/v1/repos/dokku/dokku/packages/deb/ubuntu/focal.json",
"https://packagecloud.io/api/v1/repos/dokku/dokku/packages/deb/ubuntu/jammy.json",
auth=auth,
)
data = base.json()

View File

@@ -144,7 +144,7 @@ fn-publish-package() {
fi
done
elif [[ "$DIST" == "ubuntu" ]]; then
OS_IDS=("focal" "jammy")
OS_IDS=("focal" "jammy" "noble")
for OS_ID in "${OS_IDS[@]}"; do
log-info "(release-dokku) pushing ${RELEASE_TYPE} to packagecloud.com/${REPOSITORY}/${DIST}"
package_cloud push "${REPOSITORY}/${DIST}/${OS_ID}" "$PACKAGE_NAME"