1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/release.py
2019-12-02 12:23:08 -05:00

15 lines
310 B
Python

import os
_GIT_HEAD_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "GIT_HEAD")
SERVICE = "quay"
GIT_HEAD = None
REGION = os.environ.get("QUAY_REGION")
# Load git head if available
if os.path.isfile(_GIT_HEAD_PATH):
with open(_GIT_HEAD_PATH) as f:
GIT_HEAD = f.read().strip()