This repository has been archived by the owner on Apr 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
.gitlab-ci.yml
29 lines (27 loc) · 1.84 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
build:
image: docker:18-git
stage: build
only:
- /^v[0-9]+\.[0-9]+\.[0-9]+.*$/
except:
- branches
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