Enable caching on build

This commit is contained in:
Joey Hafner 2022-07-12 19:58:05 -07:00
parent c8df968e10
commit 5be801bc15

View File

@ -8,5 +8,5 @@ build_image:
- echo $CI_REGISTRY_USER - echo $CI_REGISTRY_USER
- echo $CI_REGISTRY - echo $CI_REGISTRY
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build --no-cache -t $CI_REGISTRY/jafner/calibre-web/calibre-web:$CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA -t $CI_REGISTRY/jafner/calibre-web/calibre-web:$CI_COMMIT_BRANCH-latest . - docker build -t $CI_REGISTRY/jafner/calibre-web/calibre-web:$CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA -t $CI_REGISTRY/jafner/calibre-web/calibre-web:$CI_COMMIT_BRANCH-latest .
- docker push $CI_REGISTRY/jafner/calibre-web/calibre-web --all-tags - docker push $CI_REGISTRY/jafner/calibre-web/calibre-web --all-tags