Commit 3bee1069 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

feat: Use caching for both image generation

parent b012af61
......@@ -25,7 +25,7 @@ build and publish the image:
# Build the new version, assign new tag and `latest` tag
- docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:latest .
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG .
- docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG .
# Push the newly built version to the registry
- docker push $CI_REGISTRY_IMAGE
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment