chore: fix temporary hickup for pkg redatam
This commit is contained in:
parent
2abb903efa
commit
9953ebe31f
1 changed files with 358 additions and 59 deletions
66
.woodpecker/update-package-index-ubuntu-2404-amd64.yaml
Normal file
66
.woodpecker/update-package-index-ubuntu-2404-amd64.yaml
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
when:
|
||||
- event: [cron]
|
||||
cron: update-package-index-ubuntu-2404-amd64
|
||||
- event: manual
|
||||
evaluate: 'update_package_index == "ubuntu-2404-amd64"'
|
||||
|
||||
skip_clone: true
|
||||
|
||||
steps:
|
||||
- name: Upload PACKAGES files
|
||||
secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token, GITHUB_PAT]
|
||||
image: docker.io/devxygmbh/amd64-binaries-r-ubuntu-2404
|
||||
pull: true
|
||||
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
|
||||
R_PKG_CACHE_DIR: /mnt/cache/pkgcache
|
||||
R_LIBS_USER: /mnt/cache/R-pkgs
|
||||
volumes:
|
||||
- amd64-binaries-r-dep-cache-ubuntu-2404:/mnt/cache
|
||||
commands:
|
||||
# download latest package version (avoid having to rebuild image every time)
|
||||
# rscript_startup arg: required to pass down global option to future workers https://github.com/HenrikBengtsson/future/issues/134#issuecomment-2245666169
|
||||
- git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git .
|
||||
- rm -rf /mnt/cache/packages/*
|
||||
- rm -rf /mnt/cache/R-pkgs/stringr
|
||||
- R CMD INSTALL .
|
||||
- R -q -e 'pak::pak(c("pat-s/desc@description-from-remote", "pat-s/cranlike@s3"))'
|
||||
- cd /mnt/cache/packages
|
||||
- R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()'
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
requests:
|
||||
memory: 2000Mi
|
||||
cpu: 2000m
|
||||
limits:
|
||||
memory: 2000Mi
|
||||
cpu: 2000m
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: 'amd64'
|
||||
|
||||
- name: "ntfy"
|
||||
image: codeberg.org/l-x/woodpecker-ntfy:1.3.1
|
||||
when:
|
||||
- status: [failure]
|
||||
settings:
|
||||
url: https://ntfy.devxy.io/ci-builds
|
||||
token:
|
||||
from_secret: ntfy_token
|
||||
title: "CI '${CI_REPO}' failed"
|
||||
actions: view, Open build, ${CI_PIPELINE_URL}, clear=false;
|
||||
click: ${CI_BUILD_LINK}
|
||||
message: |
|
||||
Workflow: ${CI_WORKFLOW_NAME/\n//}
|
||||
Commit message: ${CI_COMMIT_MESSAGE/\n//}
|
||||
Commit Author: ${CI_COMMIT_AUTHOR/\n//}
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
requests:
|
||||
memory: 100Mi
|
||||
cpu: 0m
|
||||
limits:
|
||||
memory: 300Mi
|
||||
cpu: 200m
|
||||
Loading…
Reference in a new issue