-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy path.gitlab-rgl.yml
More file actions
98 lines (86 loc) · 2.65 KB
/
.gitlab-rgl.yml
File metadata and controls
98 lines (86 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "web"'
- if: '$CI_PIPELINE_SOURCE == "webide"'
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_BRANCH == "development"'
- if: '$CI_COMMIT_TAG'
variables:
KUBERNETES_MEMORY_LIMIT: "8Gi"
REF_NAME: ${CI_COMMIT_REF_NAME}
default:
image: ubuntu:noble
retry: 2
coatjava_build:
image: gcr.io/kaniko-project/executor:debug
script:
- echo "${CI_COMMIT_REF_NAME}"
- >-
/kaniko/executor
--context $CI_PROJECT_DIR/docker
--dockerfile $CI_PROJECT_DIR/.containers/coatjava.Dockerfile
--destination $CI_REGISTRY_IMAGE/coatjava:${CI_COMMIT_REF_NAME}
--build-arg REF_NAME=${CI_COMMIT_REF_NAME}
coatjava_dind_build:
image: eicweb.phy.anl.gov:4567/containers/image_recipes/ubuntu_dind:latest
tags:
- "silicon"
when: manual
allow_failure: true
script:
- echo "${CI_COMMIT_REF_NAME}"
- >
docker build --build-arg REF_NAME=${CI_COMMIT_REF_NAME} \
-f .containers/coatjava.Dockerfile \
-t $CI_REGISTRY_IMAGE/coatjava_dind:${CI_COMMIT_REF_NAME} .
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
- docker push $CI_REGISTRY_IMAGE/coatjava_dind:${CI_COMMIT_REF_NAME}
print_help:
image: $CI_REGISTRY_IMAGE/coatjava:${CI_COMMIT_REF_NAME}
needs: ["coatjava_build"]
script:
- export PATH=/opt/coatjava/coatjava/bin:$PATH
- source /opt/coatjava/coatjava/libexec/env.sh
- ls -lrth
- printenv
- decoder -help || true
- recon-util -help || true
alert_testing:
needs: ["coatjava_build"]
variables:
REF_NAME: "$CI_COMMIT_REF_NAME"
trigger:
project: hallb/alert/c12
strategy: depend
shared_for_alert_tests:
needs: ["coatjava_build"]
variables:
REF_NAME: "$CI_COMMIT_REF_NAME"
trigger:
project: hallb/alert/atof/shared_for_alert
strategy: depend
coatjava:singularity:
image: eicweb.phy.anl.gov:4567/containers/image_recipes/ubuntu_dind:latest
needs: ["coatjava_build"]
tags:
- silicon
allow_failure: true
script:
- apptainer build --build-arg REF_NAME=${REF_NAME} coatjava.sif .containers/coatjava.def
- ls -lrth
artifacts:
paths:
- coatjava.sif
create-pages:
image: codecr.jlab.org/hallb/alert/coatjava/coatjava:development
script:
- echo "${CI_COMMIT_REF_NAME}"
- ls -lrth
- mvn --version
- java --version
- ls -lrth
- pwd
- ./build-coatjava.sh --docs
- mv coatjava/share/doc/coatjava/html public
pages: true # specifies that this is a Pages job and publishes the default public directory