add cache for docker

This commit is contained in:
Evandre Silva
2022-06-03 09:36:21 +01:00
parent c7d59a5d41
commit 68ee1b161e
+1 -1
View File
@@ -8,7 +8,7 @@ pipelines:
- step: - step:
name: 'Build Images and push to Docker hub' name: 'Build Images and push to Docker hub'
caches: caches:
- node - docker
script: script:
- export BITBUCKET_COMMIT_SHORT=$(echo $BITBUCKET_COMMIT| cut -c1-7) - export BITBUCKET_COMMIT_SHORT=$(echo $BITBUCKET_COMMIT| cut -c1-7)
- export IMAGE_NAME=gabinetedigital/gdsite:$BITBUCKET_COMMIT_SHORT - export IMAGE_NAME=gabinetedigital/gdsite:$BITBUCKET_COMMIT_SHORT