Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
Sören Henning
theodolite
Commits
55d617d9
Commit
55d617d9
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Add fist Docker deploy job
parent
a7a79706
No related branches found
No related tags found
1 merge request
!22
Enable Docker push in pipeline
Pipeline
#560
failed
4 years ago
Stage: build
Stage: test
Stage: check
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+16
-4
16 additions, 4 deletions
.gitlab-ci.yml
with
16 additions
and
4 deletions
.gitlab-ci.yml
+
16
−
4
View file @
55d617d9
...
...
@@ -86,14 +86,26 @@ spotbugs:
DOCKER_TLS_CERTDIR
:
"
/certs"
script
:
-
DOCKER_TAG_NAME=$(echo $CI_COMMIT_REF_SLUG- | sed 's/^master-$//')
-
docker build --pull -t
titan-ccp-exp-bigdata19-bridge ./exp-bigdata19-bridge
-
docker tag
titan-ccp-exp-bigdata19-bridge $DOCKERHUB_ORG/titan-ccp-exp-bigdata19-bridge
:${DOCKER_TAG_NAME}latest
-
docker tag
titan-ccp-exp-bigdata19-bridge $DOCKERHUB_ORG/titan-ccp-exp-bigdata19-bridge
:$DOCKER_TAG_NAME$CI_COMMIT_SHA
-
docker build --pull -t
$IMAGE_NAME ./$JAVA_PROJECT_NAME
-
docker tag
$IMAGE_NAME $DOCKERHUB_ORG/$IMAGE_NAME
:${DOCKER_TAG_NAME}latest
-
docker tag
$IMAGE_NAME $DOCKERHUB_ORG/$IMAGE_NAME
:$DOCKER_TAG_NAME$CI_COMMIT_
SHORT_
SHA
-
echo $DOCKERHUB_PW | docker login -u $DOCKERHUB_ID --password-stdin
-
docker push $DOCKERHUB_ORG/
titan-ccp-exp-bigdata19-bridge
-
docker push $DOCKERHUB_ORG/
$IMAGE_NAME
-
docker logout
only
:
variables
:
-
$DOCKERHUB_ORG
-
$DOCKERHUB_ID
-
$DOCKERHUB_PW
-
$IMAGE_NAME
-
$JAVA_PROJECT_NAME
changes
:
-
./$JAVA_PROJECT_NAME/**/*
-
./application-kafkastreams-commons/**/*
deploy-uc1-kstreams-app
:
extends
:
.deploy
variables
:
IMAGE_NAME
:
"
theodolite-uc1-kstreams-app"
JAVA_PROJECT_NAME
:
"
uc4-application"
\ No newline at end of file
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