rename to .crow
This commit is contained in:
parent
6765ff2c0e
commit
df4d99d2c5
1 changed files with 0 additions and 0 deletions
75
.crow/update-package-index-redhat-9-amd64.yaml
Normal file
75
.crow/update-package-index-redhat-9-amd64.yaml
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
when:
|
||||
- event: [cron]
|
||||
cron: update-package-index-redhat-9-amd64
|
||||
- event: [cron]
|
||||
cron: update-package-index
|
||||
- event: manual
|
||||
evaluate: 'update_package_index == "redhat-9-amd64"'
|
||||
|
||||
skip_clone: true
|
||||
|
||||
steps:
|
||||
- name: Upload PACKAGES files
|
||||
image: docker.io/devxygmbh/amd64-binaries-r-ubuntu-2404
|
||||
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
|
||||
commands:
|
||||
- git clone -q https://pat-s:$$GIT_RO_TOKEN@git.devxy.io/devxy/build-binaries.git .
|
||||
- rm -rf /mnt/cache/packages/*
|
||||
- R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")'
|
||||
- R -q -e 'pak::pak("pat-s/cranlike@s3")'
|
||||
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
|
||||
- R -q -e 'packageVersion("bincraftR")'
|
||||
- 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(codename = "rhel9")'
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
requests:
|
||||
memory: 3000Mi
|
||||
cpu: 2000m
|
||||
limits:
|
||||
memory: 3000Mi
|
||||
cpu: 8000m
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: 'amd64'
|
||||
|
||||
- name: Purge CDN cache
|
||||
image: curlimages/curl
|
||||
environment:
|
||||
BUNNY_API_KEY:
|
||||
from_secret: BUNNY_API_KEY
|
||||
commands: |
|
||||
curl -sL -X POST -H "AccessKey: $BUNNY_API_KEY" https://api.bunny.net/purge?url=https%3A%2F%2Fcran.devxy.io%2Famd64%2Frhel9%2Flatest%2Fsrc%2Fcontrib%2FPACKAGES&async=false
|
||||
curl -sL -X POST -H "AccessKey: $BUNNY_API_KEY" https://api.bunny.net/purge?url=https%3A%2F%2Fcran.devxy.io%2Famd64%2Frhel9%2Flatest%2Fsrc%2Fcontrib%2FPACKAGES.gz&async=false
|
||||
curl -sL -X POST -H "AccessKey: $BUNNY_API_KEY" https://api.bunny.net/purge?url=https%3A%2F%2Fcran.devxy.io%2Famd64%2Frhel9%2Flatest%2Fsrc%2Fcontrib%2FPACKAGES.rds&async=false
|
||||
curl -sL -X POST -H "AccessKey: $BUNNY_API_KEY" https://api.bunny.net/purge?url=https%3A%2F%2Fcran.devxy.io%2Famd64%2Frhel9%2Flatest%2Fsrc%2Fcontrib%2FPACKAGES.db&async=false
|
||||
curl -sL -X POST -H "AccessKey: $BUNNY_API_KEY" https://api.bunny.net/purge?url=https%3A%2F%2Fcran.devxy.io%2Famd64%2Frhel9%2Flatest%2Fsrc%2Fcontrib%2FPMeta%2FParchive.rds&async=false
|
||||
sleep 20 # need to wait a bit to successfully deliver API calls
|
||||
|
||||
- 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