EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESA
PRISM
VS
Commits
299312d4
Commit
299312d4
authored
4 years ago
by
Lubomir Dolezal
Browse files
Options
Downloads
Patches
Plain Diff
put back docker pulls into ci as it perhaps should be there
parent
d470e294
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!36
Staging to master to prepare 1.0.0 release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-0
18 additions, 0 deletions
.gitlab-ci.yml
with
18 additions
and
0 deletions
.gitlab-ci.yml
+
18
−
0
View file @
299312d4
...
...
@@ -13,16 +13,22 @@ build-tag:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
IMAGE_1="$CI_REGISTRY_IMAGE/pvs_core"
-
docker pull "$IMAGE_1":latest ||
true
-
docker build --cache-from "$IMAGE_1":latest -t "$IMAGE_1":dev -t "$IMAGE_1":$CI_COMMIT_TAG core/
-
IMAGE_2="$CI_REGISTRY_IMAGE/pvs_preprocessor"
-
docker pull "$IMAGE_2":latest ||
true
-
docker build --cache-from "$IMAGE_2":latest -t "$IMAGE_2":dev -t "$IMAGE_2":$CI_COMMIT_TAG preprocessor/
-
IMAGE_3="$CI_REGISTRY_IMAGE/pvs_client"
-
docker pull "$IMAGE_3":latest ||
true
-
docker build --cache-from "$IMAGE_3":latest -t "$IMAGE_3":dev -t "$IMAGE_3":$CI_COMMIT_TAG client/
-
IMAGE_4="$CI_REGISTRY_IMAGE/pvs_cache"
-
docker pull "$IMAGE_4":latest ||
true
-
docker build --cache-from "$IMAGE_4":latest -t "$IMAGE_4":dev -t "$IMAGE_4":$CI_COMMIT_TAG cache/
-
IMAGE_5="$CI_REGISTRY_IMAGE/fluentd"
-
docker pull "$IMAGE_5":latest ||
true
-
docker build --cache-from "$IMAGE_5":latest -t "$IMAGE_5":dev -t "$IMAGE_5":$CI_COMMIT_TAG fluentd/
-
IMAGE_6="$CI_REGISTRY_IMAGE/pvs_ingestor"
-
docker pull "$IMAGE_6":latest ||
true
-
docker build --cache-from "$IMAGE_6":latest -t "$IMAGE_6":dev -t "$IMAGE_6":$CI_COMMIT_TAG ingestor/
-
cd ./testing && ./gitlab_test.sh
-
if [ $? -ne 0 ]; then exit 1; fi
# actually fail build
...
...
@@ -44,16 +50,22 @@ build-master-staging:
script
:
-
if [[ "$CI_COMMIT_BRANCH" = "master" ]] ; then TAG_USED="latest"; else TAG_USED="staging"; fi
-
IMAGE_1="$CI_REGISTRY_IMAGE/pvs_core"
-
docker pull "$IMAGE_1":"$TAG_USED" ||
true
-
docker build --cache-from "$IMAGE_1":"$TAG_USED" -t "$IMAGE_1":dev -t "$IMAGE_1":"$TAG_USED" core/
-
IMAGE_2="$CI_REGISTRY_IMAGE/pvs_preprocessor"
-
docker pull "$IMAGE_2":"$TAG_USED" ||
true
-
docker build --cache-from "$IMAGE_2":"$TAG_USED" -t "$IMAGE_2":dev -t "$IMAGE_2":"$TAG_USED" preprocessor/
-
IMAGE_3="$CI_REGISTRY_IMAGE/pvs_client"
-
docker pull "$IMAGE_3":"$TAG_USED" ||
true
-
docker build --cache-from "$IMAGE_3":"$TAG_USED" -t "$IMAGE_3":dev -t "$IMAGE_3":"$TAG_USED" client/
-
IMAGE_4="$CI_REGISTRY_IMAGE/pvs_cache"
-
docker pull "$IMAGE_4":"$TAG_USED" ||
true
-
docker build --cache-from "$IMAGE_4":"$TAG_USED" -t "$IMAGE_4":dev -t "$IMAGE_4":"$TAG_USED" cache/
-
IMAGE_5="$CI_REGISTRY_IMAGE/fluentd"
-
docker pull "$IMAGE_6":"$TAG_USED" ||
true
-
docker build --cache-from "$IMAGE_5":"$TAG_USED" -t "$IMAGE_5":dev -t "$IMAGE_5":"$TAG_USED" fluentd/
-
IMAGE_6="$CI_REGISTRY_IMAGE/pvs_ingestor"
-
docker pull "$IMAGE_6":"$TAG_USED" ||
true
-
docker build --cache-from "$IMAGE_6":"$TAG_USED" -t "$IMAGE_6":dev -t "$IMAGE_6":"$TAG_USED" ingestor/
-
cd ./testing && ./gitlab_test.sh
-
if [ $? -ne 0 ]; then exit 1; fi
# actually fail build
...
...
@@ -77,16 +89,22 @@ build:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
IMAGE="$CI_REGISTRY_IMAGE/pvs_core"
-
docker pull "$IMAGE":staging ||
true
-
docker build --cache-from "$IMAGE":staging -t "$IMAGE":dev core/
-
IMAGE="$CI_REGISTRY_IMAGE/pvs_preprocessor"
-
docker pull "$IMAGE":staging ||
true
-
docker build --cache-from "$IMAGE":staging -t "$IMAGE":dev preprocessor/
-
IMAGE="$CI_REGISTRY_IMAGE/pvs_client"
-
docker pull "$IMAGE":staging ||
true
-
docker build --cache-from "$IMAGE":staging -t "$IMAGE":dev client/
-
IMAGE="$CI_REGISTRY_IMAGE/pvs_cache"
-
docker pull "$IMAGE":staging ||
true
-
docker build --cache-from "$IMAGE":staging -t "$IMAGE":dev cache/
-
IMAGE="$CI_REGISTRY_IMAGE/fluentd"
-
docker pull "$IMAGE":staging ||
true
-
docker build --cache-from "$IMAGE":staging -t "$IMAGE":dev fluentd/
-
IMAGE="$CI_REGISTRY_IMAGE/pvs_ingestor"
-
docker pull "$IMAGE":staging ||
true
-
docker build --cache-from "$IMAGE":staging -t "$IMAGE":dev ingestor/
-
cd ./testing && ./gitlab_test.sh
-
if [ $? -ne 0 ]; then exit 1; fi
# actually fail build
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment