Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
reposync
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
linuxsupport
cronjobs
reposync
Commits
09d4b478
Commit
09d4b478
authored
1 week ago
by
Alex Iribarren
Browse files
Options
Downloads
Patches
Plain Diff
Scheduled pipelines should only run sanity_check
parent
26ca072f
No related branches found
No related tags found
No related merge requests found
Pipeline
#11009659
waiting for manual action
Stage: prepare
Stage: deploy_test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-0
12 additions, 0 deletions
.gitlab-ci.yml
with
12 additions
and
0 deletions
.gitlab-ci.yml
+
12
−
0
View file @
09d4b478
...
@@ -11,6 +11,9 @@ prepare_dirs:
...
@@ -11,6 +11,9 @@ prepare_dirs:
-
reposync/gpgkeys/
-
reposync/gpgkeys/
-
reposync/prod.repos.d/
-
reposync/prod.repos.d/
expire_in
:
1 day
expire_in
:
1 day
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
when
:
never
generate_jobs
:
generate_jobs
:
stage
:
prepare
stage
:
prepare
...
@@ -23,6 +26,9 @@ generate_jobs:
...
@@ -23,6 +26,9 @@ generate_jobs:
paths
:
paths
:
-
'
*.nomad'
-
'
*.nomad'
expire_in
:
1 day
expire_in
:
1 day
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
when
:
never
sanity_check
:
sanity_check
:
stage
:
prepare
stage
:
prepare
...
@@ -42,6 +48,9 @@ build_reposync:
...
@@ -42,6 +48,9 @@ build_reposync:
TO
:
$CI_REGISTRY_IMAGE/reposync
TO
:
$CI_REGISTRY_IMAGE/reposync
PARENT_PIPELINE_ID
:
${CI_PIPELINE_ID}
PARENT_PIPELINE_ID
:
${CI_PIPELINE_ID}
ARTIFACT_JOB
:
prepare_dirs
ARTIFACT_JOB
:
prepare_dirs
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
when
:
never
stop_deleted
:
stop_deleted
:
extends
:
.nomad
extends
:
.nomad
...
@@ -56,3 +65,6 @@ stop_deleted:
...
@@ -56,3 +65,6 @@ stop_deleted:
echo -e "\nDeleting job ${JOB}:"
echo -e "\nDeleting job ${JOB}:"
nomad job stop -verbose ${JOB} || true
nomad job stop -verbose ${JOB} || true
done
done
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
when
:
never
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