I understand that images can be cached to help reduce the run time of a pipeline, but I am not sure of the exact values that need to go in 'caches' section both in the 'step' and 'definitions'. For example, in this simple example to FTP files to a server, should I cache 'atlassian/default-image:2' and/or 'atlassian/ftp-deploy:0.3.6'? Do I need to cache 'docker'? Would like to know the exact text that goes in the YML file below.
image: atlassian/default-image:2
pipelines:
branches:
master:
- step:
name: Deploy to Production
deployment: production
caches:
- <WHAT GOES HERE?>
script:
- pipe: atlassian/ftp-deploy:0.3.6
variables:
USER: $FTP_USERNAME
PASSWORD: $FTP_PASSWORD
SERVER: $FTP_HOST
REMOTE_PATH: /
DELETE_FLAG: 'true' # Delete existing files
EXTRA_ARGS: "--exclude=bitbucket-pipelines.yml --exclude=.gitignore"
definitions:
caches:
<WHAT GOES HERE?>