-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (45 loc) · 1.33 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
# MODE APP Gitlab CI Autobuilder for Docker Container
# See https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Docker.gitlab-ci.yml
stages:
- fetch
- build
#Include our standard library
include:
- remote: 'https://raw.githubusercontent.com/pnnl-miscscripts/gitlab-lib/v1/gitlab-lib.yaml'
fetch-lib:
stage: fetch
image: alpine
tags:
- k8s
- rzr
- codebuilds
script: |
apk add git
git clone "https://map-build:${MODE_APP_BUILD}@code.emsl.pnl.gov/multiomics-analyses/mapdataaccess-lib" mapDataAccess
artifacts:
paths:
- mapDataAccess
expire_in: 1 day
only:
- master@multiomics-analyses/mode-app
#Build and push the container.
build-image:
extends: .pnnllib-gitlab-build-container-image
image:
name: gcr.io/kaniko-project/executor:v1.5.2-debug
entrypoint: [""]
stage: build
tags:
- k8s
- rzr
- codebuilds
dependencies:
- fetch-lib
variables:
# CONTAINER_PREFIX - extra prefix for the image. Can be used to add a string on the front of an image name or a parent directory in the repository.
# CONTAINER_TAG - The container tag to use. Defaults to $CI_COMMIT_TAG
CONTAINER_TAG: 0.0.14
# DOCKERFILE - The name of the dockerfile to use. Defaults to Dockerfile.
KANIKO_EXTRA_ARGS: "--use-new-run"
only:
- master@multiomics-analyses/mode-app