-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
37 lines (34 loc) · 960 Bytes
/
.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
include:
- project: nosana-ci/tools/cicd/gitlab-ci
file: docker-container.yml
variables:
SKIP_AUTO_BUILD: ok
RUN_AUTO_BUMP: ok
AUTO_BUMP_REPO: nosana-ci/apps/platform/k8s
AUTO_BUMP_FILE: helm-nostromo.tf
AUTO_BUMP_SCG_PREFIX: image_tag [^}]*= { dev = \"
TRIVY_OFFLINE_SCAN: "true"
build:
stage: build
image: clojure:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- echo '{:username "'${CI_REGISTRY_USER}'" :password "'${CI_REGISTRY_PASSWORD}'"}' > .creds.edn
script:
- clj -X:compile
- clj -Sdeps '{:mvn/local-repo "'${CI_PROJECT_DIR}'/.m2/repository"}' -T:container "$(< jib-gitlab.edn)"
after_script:
- rm .creds.edn
cache:
paths:
- .m2/repository
rules:
- if: $CI_MERGE_REQUEST_ID
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
auto deploy prd:
stage: .post
extends: .auto-deploy
variables:
AUTO_BUMP_SCG_PREFIX: image_tag [^}]* prd = \"
when: manual