-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathconstants.py
More file actions
31 lines (23 loc) · 915 Bytes
/
constants.py
File metadata and controls
31 lines (23 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (c) Contributors to the aswf-docker Project. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
"""
Main configuration and constants for aswfdocker
"""
import enum
class ImageType(enum.Enum):
CI_IMAGE = "ci-image"
RT_IMAGE = "rt-image"
PACKAGE = "package"
PUBLISH_DOCKER_ORG = "aswf"
TESTING_DOCKER_ORG = "aswftesting"
# this org is not valid, but this ensures that the test will not accidently pull an existing image
FAKE_DOCKER_ORG = "aswflocaltesting"
DOCKER_REGISTRY = "docker.io"
DEV_BUILD_DATE = "dev"
DEV_VCS_REF = "dev"
MAIN_GITHUB_ASWF_ORG = "AcademySoftwareFoundation"
MAIN_GITHUB_REPO_NAME = "aswf-docker"
MAIN_GITHUB_ASWF_DOCKER_URL = (
f"https://github.com/{MAIN_GITHUB_ASWF_ORG}/{MAIN_GITHUB_REPO_NAME}"
)
IMAGE_NAME_REGEX = r"(refs/tags/)?(?P<org>[a-z]+)/(?P<ci>ci-)?(?P<rt>rt-)?(?P<package>package\-)?(?P<image>[a-z0-9\-]+)[:/](?P<version>[0-9\.a-z\-]+)"