rename to .crow
This commit is contained in:
parent
6765ff2c0e
commit
df4d99d2c5
1 changed files with 0 additions and 0 deletions
|
|
@ -1,76 +0,0 @@
|
|||
when:
|
||||
- event: [cron]
|
||||
cron: process-cran-updates-redhat-8-arm64
|
||||
- event: manual
|
||||
evaluate: 'process_cran_updates == "all"'
|
||||
- event: manual
|
||||
evaluate: 'process_cran_updates == "redhat-8-arm64"'
|
||||
|
||||
skip_clone: true
|
||||
|
||||
steps:
|
||||
- name: 'Processing Updates'
|
||||
image: docker.io/devxygmbh/arm64-binaries-r-redhat-8
|
||||
pull: true
|
||||
environment:
|
||||
RED_HAT_DEV_PW:
|
||||
from_secret: RED_HAT_DEV_PW
|
||||
HETZNER_S3_ACCESS_KEY_K3S:
|
||||
from_secret: HETZNER_S3_ACCESS_KEY_K3S
|
||||
HETZNER_S3_SECRET_KEY_K3S:
|
||||
from_secret: HETZNER_S3_SECRET_KEY_K3S
|
||||
PGPASS:
|
||||
from_secret: PGPASS
|
||||
GIT_RO_TOKEN:
|
||||
from_secret: GIT_RO_TOKEN
|
||||
GITHUB_PAT:
|
||||
from_secret: GITHUB_PAT
|
||||
# normal env vars
|
||||
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
|
||||
CCACHE_DIR: /mnt/cache/ccache
|
||||
PLATFORM: redhat-8
|
||||
ARCH: arm64
|
||||
NCPUS: 2
|
||||
INTERVAL: lubridate::interval(lubridate::today() - 3, lubridate::today() - 3)
|
||||
# volumes:
|
||||
# - arm64-binaries-r-dep-cache-redhat-8:/mnt/cache
|
||||
commands:
|
||||
- git clone -q https://pat-s:$$GIT_RO_TOKEN@git.devxy.io/devxy/build-binaries.git .
|
||||
- rm -rf /mnt/cache/R-pkgs/00LOCK-r-pkg-binaries /mnt/cache/R-pkgs/00LOCK-bincraftR /mnt/cache/R-pkgs/00LOCK-pak /mnt/cache/pkgcache/R/pkgcache /mnt/cache/pkgcache/R/pkgcache /mnt/cache/R-pkgs/pkgcache /mnt/cache/R-pkgs/00LOCK-pak/mnt/cache/R-pkgs/00LOCK-RPostgres
|
||||
- rm -rf /mnt/cache/R-pkgs/gert /mnt/cache/R-pkgs/git2r /mnt/cache/R-pkgs/pkgbuild /mnt/cache/R-pkgs/processx /mnt/cache/R-pkgs/curl
|
||||
- R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")'
|
||||
- R -q -e 'packageVersion("bincraftR")'
|
||||
- mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages
|
||||
# options(future.globals.onReference = NULL): for some reason s3fs::file_delete() throws 'Error: Detected a non-exportable reference ('externalptr') in one of the globals ('FUN' of class 'function') used in the future expression' otherwise
|
||||
- xvfb-run R -q -e "options(crayon.enabled = TRUE, Ncpus = 4, future.globals.onReference = 'error', repos = structure(c(getOption('repos'),INLA='https://inla.r-inla-download.org/R/stable'))); progressr::handlers('cli'); progressr::handlers(global = TRUE); options(future.globals.onReference = NULL); bincraftR::process_cran_updates(interval = $INTERVAL, platform = 'redhat-8', process_updated = TRUE, process_new = TRUE)"
|
||||
backend_options:
|
||||
kubernetes:
|
||||
### PROD
|
||||
resources:
|
||||
requests:
|
||||
memory: 5Gi
|
||||
cpu: 3000m
|
||||
limits:
|
||||
memory: 14Gi
|
||||
cpu: 3000m
|
||||
nodeSelector:
|
||||
node.kubernetes.io/instance-type: cax31
|
||||
kubernetes.io/arch: arm64
|
||||
tolerations:
|
||||
- key: 'CI'
|
||||
operator: 'Equal'
|
||||
value: 'true'
|
||||
effect: 'NoSchedule'
|
||||
|
||||
- name: 'ntfy'
|
||||
image: binwiederhier/ntfy:v2.11.0
|
||||
when:
|
||||
- status: [failure]
|
||||
environment:
|
||||
NTFY_TOKEN:
|
||||
from_secret: ntfy_token
|
||||
commands: |
|
||||
ntfy publish --tags=no_entry_sign --token $NTFY_TOKEN -t "Run '${CI_REPO}' failed" --click="${CI_PIPELINE_URL}" --actions="view, Open build, ${CI_PIPELINE_URL}, clear=true;" ntfy.devxy.io/ci-builds Workflow: ${CI_WORKFLOW_NAME} Commit message: ${CI_COMMIT_MESSAGE} Commit Author: ${CI_COMMIT_AUTHOR}
|
||||
Loading…
Reference in a new issue