mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-14 13:32:56 +00:00
Move tagging/utils/config to tagging/apps/config
This commit is contained in:
22
tagging/apps/config.py
Normal file
22
tagging/apps/config.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright (c) Jupyter Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Config:
|
||||
registry: str = ""
|
||||
owner: str = ""
|
||||
image: str = ""
|
||||
variant: str = ""
|
||||
platform: str = ""
|
||||
|
||||
tags_dir: Path = Path()
|
||||
hist_lines_dir: Path = Path()
|
||||
manifests_dir: Path = Path()
|
||||
|
||||
repository: str = ""
|
||||
|
||||
def full_image(self) -> str:
|
||||
return f"{self.registry}/{self.owner}/{self.image}"
|
Reference in New Issue
Block a user