0
Let's say I have:
steps:
- name: 'gcr.io/cloud-builders/gradle'
entrypoint: 'bash'
args: ['-c',
'chmod +x ./gradlew && ./gradlew build']
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '--tag', 'eu.gcr.io/my-app:$_BUILD_ID', '.']
images: ['eu.gcr.io/my-app:$_BUILD_ID']
Are there any ways to leave the gradle's cache for the future builds? Currently, it keeps downloading all dependencies each time.
Maybe I need to suppy a bucket storage and point GRADLE_USER_HOME to it?