Skip to content
Snippets Groups Projects
Commit ae8aabff authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Merge branch 'base-r-buildkit' into 'base-r'

Use inline cache, BUILDKIT_INLINE_CACHE=1

See merge request !3
parents 198de270 ba9f6847
No related branches found
No related tags found
1 merge request!3Use inline cache, BUILDKIT_INLINE_CACHE=1
Pipeline #112789 passed
...@@ -10,10 +10,10 @@ build: ...@@ -10,10 +10,10 @@ build:
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
script: script:
# pull the latest example of shiny-k8s image # pull the latest example of shiny-k8s image
- docker pull "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:latest" || echo "Former image not found, carring on" #- docker pull "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:latest" || echo "Former image not found, carring on"
# build the image while passing commit SHA and versions, and tagging the image with them # build the image while passing commit SHA and versions, and tagging the image with them
- docker build - docker build
--pull --build-arg BUILDKIT_INLINE_CACHE=1
--cache-from "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:latest" --cache-from "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:latest"
--tag "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:latest" --tag "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:latest"
--tag "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHORT_SHA" --tag "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHORT_SHA"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment