Skip to content

Commit c269e1c

Browse files
authored
nexus deployment
1 parent 67744a9 commit c269e1c

1 file changed

Lines changed: 37 additions & 32 deletions

File tree

.gitlab-ci.yml

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,46 @@
1-
image: gitlab-registry.insee.fr/kubernetes/images/build/r-toolbox/onyxia-rstudio-insee:r4.2.1
2-
3-
stages:
4-
- check
5-
- deploy
1+
include:
2+
- project: "idda/applications/nexus/pipeline-admission/ci-templates"
3+
ref: main
4+
file: "livraison-package.yaml"
65

76
variables:
87
GIT_SSL_NO_VERIFY: "1"
98
PKG_NAME: "rtauargus"
109

11-
pkg_check:
12-
stage: check
13-
tags:
14-
- docker
15-
script:
16-
- Rscript -e 'install.packages(c("zoo", "gdata"))'
17-
- Rscript -e 'devtools::check(check_dir = ".",
18-
error_on = "error",
19-
cran = FALSE,
20-
document = FALSE,
21-
manual = FALSE)'
22-
artifacts:
23-
paths:
24-
- "${PKG_NAME}_*.tar.gz"
25-
only:
26-
- master
27-
- developpement
10+
image: gitlab-registry.insee.fr:443/datascience/registry-prod/onyxia-rstudio:r4.4.2
11+
12+
stages:
13+
- 📦️ Package
2814

29-
pages:
30-
stage: deploy
31-
tags:
32-
- docker
15+
Build:
16+
stage: 📦️ Package
17+
image: inseefrlab/onyxia-rstudio:latest
18+
retry:
19+
max: 2
20+
when: runner_system_failure
21+
rules:
22+
- when: manual
3323
script:
34-
- Rscript -e 'install.packages(c("zoo", "gdata"))'
35-
- Rscript -e 'options(pkgdown.internet = FALSE) ; pkgdown::build_site()'
24+
- |
25+
set -e
26+
R --version
27+
R CMD build .
3628
artifacts:
3729
paths:
38-
- public
39-
when: manual # pour declencher manuellement le job quand version stable
40-
only:
41-
- master
30+
- "*.tar.gz"
31+
32+
Nexus:
33+
stage: 📦️ Package
34+
variables:
35+
DEST_REPOSITORY: "r-local"
36+
PATH_ARTEFACT_A_DEPLOYER: "${PKG_NAME}_*.tar.gz"
37+
NOM_DU_JOB_CONTENANT_LE_LIVRABLE: "Build"
38+
extends: .template:livraison-package
39+
retry:
40+
max: 2
41+
when: runner_system_failure
42+
rules:
43+
- when: manual
44+
needs:
45+
- job: Build
46+
artifacts: true

0 commit comments

Comments
 (0)