diff --git a/acm.py b/acm.py index 7275a73..54131ed 100755 --- a/acm.py +++ b/acm.py @@ -46,9 +46,8 @@ async def run_command_shell( process_stdout, process_stderr = await process.communicate() if process.returncode == 0: - for callable in on_success: - if callable is not None: - callable() + for success_callable in on_success: + success_callable() if stdout != asyncio.subprocess.DEVNULL: result = process_stdout.decode().strip() @@ -725,7 +724,7 @@ def compress_assets(ctx, profile, content, destination, print_input_and_identity ) ) return task - return None + return lambda: True for input_file in files: for content_configuration in content_configurations: diff --git a/pipeline.yml b/pipeline.yml index 9aa8098..30bd44b 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -28,7 +28,8 @@ jobs: - put: git-resource-image-nexus params: build: git-resource - cache: sothr/acm:latest + cache: true + cache_tag: latest tag_file: git-resource/.git/ref tag_as_latest: true get_params: @@ -36,7 +37,8 @@ jobs: - put: git-resource-image params: build: git-resource - cache: sothr/acm:latest + cache: true + cache_tag: latest tag_file: git-resource/.git/ref tag_as_latest: true get_params: