Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shiny-k8s-example
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hub
shiny-k8s-example
Merge requests
!3
Use inline cache, BUILDKIT_INLINE_CACHE=1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Use inline cache, BUILDKIT_INLINE_CACHE=1
base-r-buildkit
into
base-r
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Bryan BRANCOTTE
requested to merge
base-r-buildkit
into
base-r
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
base-r
base-r (base)
and
latest version
latest version
ba9f6847
1 commit,
1 year ago
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
2
−
2
Options
@@ -10,10 +10,10 @@ build:
-
echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
script
:
# 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
-
docker build
--
pull
--
build-arg BUILDKIT_INLINE_CACHE=1
--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:$CI_COMMIT_SHORT_SHA"
Loading