1
0
mirror of https://github.com/quay/quay.git synced 2025-04-18 10:44:06 +03:00
quay/release.py
Kenny Lee Sin Cheong 5f63b3a7bb
chore: drop deprecated tables and remove unused code (PROJQUAY-522) (#2089)
* chore: drop deprecated tables and remove unused code

* isort imports

* migration: check for table existence before drop
2023-08-25 12:17:24 -04:00

14 lines
309 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()