-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
28 lines (26 loc) · 1.8 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
build:
image: docker:18-git
stage: build
only:
- main
- stable
services:
- docker:18-dind
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t ${OLS_IMAGE_PREFIX}/ols-config-importer:$CI_COMMIT_REF_NAME-$CI_BUILD_ID -f ./ols-apps/ols-config-importer/Dockerfile .
- docker build -t ${OLS_IMAGE_PREFIX}/ols-indexer:$CI_COMMIT_REF_NAME-$CI_BUILD_ID -f ./ols-apps/ols-indexer/Dockerfile .
- docker build -t ${OLS_IMAGE_PREFIX}/ols-web:$CI_COMMIT_REF_NAME-$CI_BUILD_ID -f ./ols-web/Dockerfile .
- docker build -t ${OLS_IMAGE_PREFIX}/ols-solr:$CI_COMMIT_REF_NAME-$CI_BUILD_ID -f ./solr/Dockerfile ./solr
- docker tag ${OLS_IMAGE_PREFIX}/ols-config-importer:$CI_COMMIT_REF_NAME-$CI_BUILD_ID ${OLS_IMAGE_PREFIX}/ols-config-importer:$CI_COMMIT_REF_NAME
- docker tag ${OLS_IMAGE_PREFIX}/ols-indexer:$CI_COMMIT_REF_NAME-$CI_BUILD_ID ${OLS_IMAGE_PREFIX}/ols-indexer:$CI_COMMIT_REF_NAME
- docker tag ${OLS_IMAGE_PREFIX}/ols-web:$CI_COMMIT_REF_NAME-$CI_BUILD_ID ${OLS_IMAGE_PREFIX}/ols-web:$CI_COMMIT_REF_NAME
- docker tag ${OLS_IMAGE_PREFIX}/ols-solr:$CI_COMMIT_REF_NAME-$CI_BUILD_ID ${OLS_IMAGE_PREFIX}/ols-solr:$CI_COMMIT_REF_NAME
- docker push ${OLS_IMAGE_PREFIX}/ols-config-importer:$CI_COMMIT_REF_NAME-$CI_BUILD_ID
- docker push ${OLS_IMAGE_PREFIX}/ols-config-importer:$CI_COMMIT_REF_NAME
- docker push ${OLS_IMAGE_PREFIX}/ols-indexer:$CI_COMMIT_REF_NAME-$CI_BUILD_ID
- docker push ${OLS_IMAGE_PREFIX}/ols-indexer:$CI_COMMIT_REF_NAME
- docker push ${OLS_IMAGE_PREFIX}/ols-web:$CI_COMMIT_REF_NAME-$CI_BUILD_ID
- docker push ${OLS_IMAGE_PREFIX}/ols-web:$CI_COMMIT_REF_NAME
- docker push ${OLS_IMAGE_PREFIX}/ols-solr:$CI_COMMIT_REF_NAME-$CI_BUILD_ID
- docker push ${OLS_IMAGE_PREFIX}/ols-solr:$CI_COMMIT_REF_NAME