Skip to content

Commit e40782d

Browse files
committed
Add gl-gh-release script to our list of available tools
Signed-off-by: Tobias Wolf <wolf@b1-systems.de>
1 parent 0577fa0 commit e40782d

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ sphinx-rtd-theme = "^3.0.2"
3939
gl-cname = "gardenlinux.features.cname_main:main"
4040
gl-features-parse = "gardenlinux.features.__main__:main"
4141
gl-flavors-parse = "gardenlinux.flavors.__main__:main"
42+
gl-gh-release = "gardenlinux.github.release_main:main"
4243
gl-oci = "gardenlinux.oci.__main__:main"
4344
gl-s3 = "gardenlinux.s3.__main__:main"
4445

src/gardenlinux/constants.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,10 @@
153153

154154
S3_DOWNLOADS_DIR = Path(os.path.dirname(__file__)) / ".." / "s3_downloads"
155155

156-
GLVD_BASE_URL = "https://glvd.ingress.glvd.gardnlinux.shoot.canary.k8s-hana.ondemand.com/v1"
157156
GL_DEB_REPO_BASE_URL = "https://packages.gardenlinux.io/gardenlinux"
157+
GLVD_BASE_URL = (
158+
"https://glvd.ingress.glvd.gardnlinux.shoot.canary.k8s-hana.ondemand.com/v1"
159+
)
158160

159161
GARDENLINUX_GITHUB_RELEASE_BUCKET_NAME = "gardenlinux-github-releases"
160162

src/gardenlinux/github/__init__.py

Whitespace-only changes.

src/gardenlinux/github/__main__.py renamed to src/gardenlinux/github/release_main.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
from gardenlinux.logger import LoggerSetup
44

5-
from .release import create_github_release, upload_to_github_release_page, write_to_release_id_file
5+
from .release import (
6+
create_github_release,
7+
upload_to_github_release_page,
8+
write_to_release_id_file,
9+
)
610
from .release_notes import create_github_release_notes
711

812
LOGGER = LoggerSetup.get_logger("gardenlinux.github", "INFO")
@@ -17,7 +21,7 @@ def main():
1721
create_parser.add_argument("--repo", default="gardenlinux")
1822
create_parser.add_argument("--tag", required=True)
1923
create_parser.add_argument("--commit", required=True)
20-
create_parser.add_argument('--latest', action='store_true', default=False)
24+
create_parser.add_argument("--latest", action="store_true", default=False)
2125
create_parser.add_argument("--dry-run", action="store_true", default=False)
2226

2327
upload_parser = subparsers.add_parser("upload")

0 commit comments

Comments
 (0)