Move cache fix step to the end of the workflow
@@ -261,16 +261,6 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- - # Temp fix - move cache instead of copying (added below step and
- # modified value of `cache-to`).
- # https://github.com/docker/build-push-action/issues/252
- # https://github.com/moby/buildkit/issues/1896
- # Without the change some jobs were failing with `no space left on device`
- name: Move cache
- run: |
- rm -rf /tmp/.buildx-cache
- mv /tmp/.buildx-cache-new /tmp/.buildx-cache
-
- name: Notify CI about completion of the workflow
# For Alfajores we want to break the chain of deployments on tBTC contracts.
if: github.event.inputs.environment != 'alfajores'
@@ -284,3 +274,13 @@ jobs:
upstream_builds: ${{ github.event.inputs.upstream_builds }}
upstream_ref: ${{ github.event.inputs.upstream_ref }}
version: ${{ needs.contracts-migrate-and-publish.outputs.version }}
+
+ - # Temp fix - move cache instead of copying (added below step and
+ # modified value of `cache-to`).
+ # https://github.com/docker/build-push-action/issues/252
+ # https://github.com/moby/buildkit/issues/1896
+ # Without the change some jobs were failing with `no space left on device`
+ name: Move cache
+ run: |
+ rm -rf /tmp/.buildx-cache
+ mv /tmp/.buildx-cache-new /tmp/.buildx-cache
\ No newline at end of file
