package index
This commit is contained in:
parent
7b13c5f7af
commit
1dea7eaa4e
1 changed files with 11 additions and 4 deletions
|
|
@ -7,14 +7,21 @@ skip_clone: true
|
|||
matrix:
|
||||
include:
|
||||
- PLATFORM: redhat-9
|
||||
ARCH: arm64
|
||||
- PLATFORM: redhat-8
|
||||
ARCH: arm64
|
||||
- PLATFORM: ubuntu-2404
|
||||
ARCH: arm64
|
||||
- PLATFORM: ubuntu-2204
|
||||
ARCH: arm64
|
||||
- PLATFORM: alpine-320
|
||||
ARCH: arm64
|
||||
- PLATFORM: alpine-320
|
||||
ARCH: amd64
|
||||
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/arm64-binaries-r-${PLATFORM}
|
||||
image: docker.io/devxygmbh/${ARCH}-binaries-r-${PLATFORM}
|
||||
pull: true
|
||||
environment:
|
||||
GIT_USER: pat-s
|
||||
|
|
@ -22,13 +29,13 @@ steps:
|
|||
R_PKG_CACHE_DIR: /mnt/cache/pkgcache
|
||||
R_LIBS_USER: /mnt/cache/R-pkgs
|
||||
volumes:
|
||||
- arm64-binaries-r-dep-cache-${PLATFORM}:/mnt/cache
|
||||
- ${ARCH}-binaries-r-dep-cache-${PLATFORM}:/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/*
|
||||
- R -q -e 'devtools::install(); packageVersion("bincraftR")'
|
||||
- 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 = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()'
|
||||
|
|
@ -42,7 +49,7 @@ steps:
|
|||
memory: 15000Mi
|
||||
cpu: 4000m
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: 'arm64'
|
||||
kubernetes.io/arch: '${ARCH}'
|
||||
|
||||
- name: "ntfy"
|
||||
image: codeberg.org/l-x/woodpecker-ntfy:1.3.1
|
||||
|
|
|
|||
Loading…
Reference in a new issue