try warm up logic
This commit is contained in:
parent
7e561e24ff
commit
dcb4336098
2 changed files with 54 additions and 2 deletions
|
|
@ -4,6 +4,9 @@ when:
|
|||
|
||||
skip_clone: true
|
||||
|
||||
depends_on:
|
||||
- warm_up_process_cran_updates
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- PLATFORM: redhat-9
|
||||
|
|
@ -30,8 +33,6 @@ steps:
|
|||
secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token, GITHUB_PAT]
|
||||
image: docker.io/devxygmbh/${ARCH}-binaries-r-${PLATFORM}
|
||||
pull: true
|
||||
# to ensure the PACKAGES upload step is being executed
|
||||
failure: ignore
|
||||
environment:
|
||||
GIT_USER: pat-s
|
||||
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
|
||||
|
|
|
|||
51
.woodpecker/warm_up_process_cran_updates.yaml
Normal file
51
.woodpecker/warm_up_process_cran_updates.yaml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
when:
|
||||
- event: [cron]
|
||||
cron: process-cran-updates
|
||||
|
||||
skip_clone: true
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- PLATFORM: redhat-9
|
||||
PKGS_ID: rhel9
|
||||
ARCH: arm64
|
||||
- PLATFORM: redhat-8
|
||||
PKGS_ID: rhel8
|
||||
ARCH: arm64
|
||||
- PLATFORM: ubuntu-2404
|
||||
PKGS_ID: noble
|
||||
ARCH: arm64
|
||||
- PLATFORM: ubuntu-2204
|
||||
PKGS_ID: jammy
|
||||
ARCH: arm64
|
||||
- PLATFORM: alpine-320
|
||||
PKGS_ID: alpine320
|
||||
ARCH: arm64
|
||||
- PLATFORM: alpine-320
|
||||
PKGS_ID: alpine320
|
||||
ARCH: amd64
|
||||
|
||||
steps:
|
||||
- name: 'Warming up'
|
||||
image: busybox:latest
|
||||
failure: ignore
|
||||
commands:
|
||||
- sleep 300
|
||||
- echo "Warmed Up"
|
||||
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
requests:
|
||||
memory: 12Gi
|
||||
cpu: 700m
|
||||
limits:
|
||||
memory: 14Gi
|
||||
cpu: 4000m
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: '${ARCH}'
|
||||
tolerations:
|
||||
- key: 'CI'
|
||||
operator: 'Equal'
|
||||
value: 'true'
|
||||
effect: 'NoSchedule'
|
||||
Loading…
Reference in a new issue