mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Allow deploy to run with no artifacts
This commit is contained in:
parent
cb367629f0
commit
d30939d63c
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ os.makedirs(TEMP_DIR, exist_ok=True)
|
||||||
# CI functions
|
# CI functions
|
||||||
|
|
||||||
def copy_artifacts_to_local_cache():
|
def copy_artifacts_to_local_cache():
|
||||||
|
if len(os.listdir('/artifacts')) == 0:
|
||||||
|
print('No artifacts were built...')
|
||||||
|
return None
|
||||||
|
|
||||||
print('Copying artifacts to cache...')
|
print('Copying artifacts to cache...')
|
||||||
# All artifact should have same version in format: /artifacts/PKG/OS/ARCH/fcast-receiver-VERSION-OS-ARCH.PKG
|
# All artifact should have same version in format: /artifacts/PKG/OS/ARCH/fcast-receiver-VERSION-OS-ARCH.PKG
|
||||||
version = os.listdir('/artifacts/zip/linux/x64')[0].split('-')[2]
|
version = os.listdir('/artifacts/zip/linux/x64')[0].split('-')[2]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue