Skip to content

Commit

Permalink
Build: suspend cron for pr checks (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlsherrill authored Jun 28, 2024
1 parent 104fb91 commit ae4410d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rhcicd/pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ REF_ENV="insights-stage"
COMPONENTS_W_RESOURCES="pulp"

# Only deploy one small red hat repo
EXTRA_DEPLOY_ARGS="--set-parameter content-sources-backend/OPTIONS_REPOSITORY_IMPORT_FILTER=small"
EXTRA_DEPLOY_ARGS="--set-parameter content-sources-backend/OPTIONS_REPOSITORY_IMPORT_FILTER=small --set-parameter content-sources-backend/SUSPEND_CRON_JOB=true"

# Install bonfire repo/initialize
# https://raw.githubusercontent.com/RedHatInsights/bonfire/master/cicd/bootstrap.sh
Expand Down
3 changes: 3 additions & 0 deletions deployments/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ objects:
- name: nightly-jobs
# https://crontab.guru/
schedule: ${NIGHTLY_CRON_JOB}
suspend: ${{SUSPEND_CRON_JOB}}
concurrencyPolicy: "Forbid"
podSpec:
securityContext:
Expand Down Expand Up @@ -578,6 +579,8 @@ parameters:
value: quay.io/cloudservices/content-sources-backend
- name: NIGHTLY_CRON_JOB
value: "0 0/1 * * *"
- name: SUSPEND_CRON_JOB
value: "False"
- name: IMAGE_TAG
required: true
- name: CPU_LIMIT
Expand Down

0 comments on commit ae4410d

Please sign in to comment.