-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.gitlab-ci.yml
71 lines (61 loc) · 1.9 KB
/
.gitlab-ci.yml
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
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"
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