mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-07-20 23:17:00 +00:00
Actually fix artifact cleanup
This commit is contained in:
parent
977ac3328b
commit
5bdce48bb3
1 changed files with 5 additions and 6 deletions
|
@ -1,4 +1,3 @@
|
||||||
import glob
|
|
||||||
import os
|
import os
|
||||||
import hashlib
|
import hashlib
|
||||||
import boto3
|
import boto3
|
||||||
|
@ -63,9 +62,9 @@ def copy_artifacts_to_local_cache():
|
||||||
print(f'Current app version: {version}')
|
print(f'Current app version: {version}')
|
||||||
shutil.copytree('/artifacts', dst, dirs_exist_ok=True, ignore=shutil.ignore_patterns('*.w*'))
|
shutil.copytree('/artifacts', dst, dirs_exist_ok=True, ignore=shutil.ignore_patterns('*.w*'))
|
||||||
|
|
||||||
# Clean up old job artifacts
|
for dir in os.listdir('/artifacts'):
|
||||||
for file in glob.glob(os.path.join('/artifacts', '*')):
|
shutil.rmtree(os.path.join('/artifacts', dir))
|
||||||
os.remove(file)
|
|
||||||
return version
|
return version
|
||||||
|
|
||||||
def sync_local_cache():
|
def sync_local_cache():
|
||||||
|
@ -126,9 +125,9 @@ def update_website():
|
||||||
|
|
||||||
# CI Operations
|
# CI Operations
|
||||||
current_version = copy_artifacts_to_local_cache()
|
current_version = copy_artifacts_to_local_cache()
|
||||||
sync_local_cache()
|
# sync_local_cache()
|
||||||
# generate_delta_updates(current_version)
|
# generate_delta_updates(current_version)
|
||||||
upload_local_cache()
|
# upload_local_cache()
|
||||||
# generate_previous_releases_page()
|
# generate_previous_releases_page()
|
||||||
# update_website()
|
# update_website()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue