Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitLab CI Cache Usage Examples
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
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
Klaus Reuter
GitLab CI Cache Usage Examples
Commits
c8d3b2ce
Commit
c8d3b2ce
authored
2 years ago
by
Klaus Reuter
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
fd033f6e
No related branches found
No related tags found
No related merge requests found
Pipeline
#138086
failed
2 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-0
4 additions, 0 deletions
.gitlab-ci.yml
with
4 additions
and
0 deletions
.gitlab-ci.yml
+
4
−
0
View file @
c8d3b2ce
...
...
@@ -11,6 +11,7 @@ cache: &global_cache
build-job
:
# This job runs in the build stage, which runs first.
stage
:
build
tag
:
cloud
script
:
-
echo "Compiling the code..."
-
echo "Compile complete."
...
...
@@ -19,6 +20,7 @@ build-job: # This job runs in the build stage, which runs first.
unit-test-job
:
# This job runs in the test stage.
stage
:
test
# It only starts when the job in the build stage completes successfully.
tag
:
cloud-gpu
cache
:
# inherit all global cache settings
<<
:
*global_cache
...
...
@@ -29,6 +31,7 @@ unit-test-job: # This job runs in the test stage.
lint-test-job
:
# This job also runs in the test stage.
stage
:
test
# It can run at the same time as unit-test-job (in parallel).
tag
:
cloud
cache
:
# inherit all global cache settings
<<
:
*global_cache
...
...
@@ -39,6 +42,7 @@ lint-test-job: # This job also runs in the test stage.
deploy-job
:
# This job runs in the deploy stage.
stage
:
deploy
# It only runs when *both* jobs in the test stage complete successfully.
tag
:
cloud
cache
:
# inherit all global cache settings
<<
:
*global_cache
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment