Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GGCE Server
Manage
Activity
Members
Labels
Plan
Issues
17
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GGCE
GGCE Server
Commits
e47632d4
Commit
e47632d4
authored
4 years ago
by
Matija Obreza
Committed by
Maxym Borodenko
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CI: Organized CI file
parent
9113b44b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-15
6 additions, 15 deletions
.gitlab-ci.yml
with
6 additions
and
15 deletions
.gitlab-ci.yml
+
6
−
15
View file @
e47632d4
...
...
@@ -39,20 +39,21 @@ package server:
<<
:
*maven_package
stage
:
package
.docker_image_template
:
&docker_image
image
:
docker:${DOCKER_VERSION}
.docker_setup
:
&docker_setup
before_script
:
# Configuration
-
echo Building docker image ${CI_REGISTRY_IMAGE} on ${DOCKER_HOST}
-
echo Registry ${CI_REGISTRY} user=${CI_REGISTRY_USER} ${CI_REGISTRY_PASSWORD}
-
TLS_PATH=~/.docker/${DOCKER_HOST}/certs && mkdir -p ${TLS_PATH}
-
echo "${DOCKER_TLS_CA}" > ${TLS_PATH}/ca.pem
-
echo "${DOCKER_TLS_KEY}" > ${TLS_PATH}/key.pem
-
echo "${DOCKER_TLS_CERT}" > ${TLS_PATH}/cert.pem
-
export DOCKER_CERT_PATH=${TLS_PATH}
-
DOCKER_CMD="docker --tlsverify=false"
.docker_image_template
:
&docker_image
<<
:
*docker_setup
script
:
# Actions
-
echo Building docker image ${CI_REGISTRY_IMAGE} on ${DOCKER_HOST}
-
cp target/*.war docker
-
cd docker
-
if [ "${CI_COMMIT_REF_SLUG}" = "${CI_DEFAULT_BRANCH}" ] ; then
...
...
@@ -82,16 +83,6 @@ dockerize server:
when
:
manual
allow_failure
:
true
.docker_setup
:
&docker_setup
before_script
:
-
echo Tagging latest image ${CI_REGISTRY_IMAGE}:{VERSION}
-
TLS_PATH=~/.docker/${DOCKER_HOST}/certs && mkdir -p ${TLS_PATH}
-
echo "${DOCKER_TLS_CA}" > ${TLS_PATH}/ca.pem
-
echo "${DOCKER_TLS_KEY}" > ${TLS_PATH}/key.pem
-
echo "${DOCKER_TLS_CERT}" > ${TLS_PATH}/cert.pem
-
export DOCKER_CERT_PATH=${TLS_PATH}
-
DOCKER_CMD="docker --tlsverify=false"
tag latest image
:
stage
:
tag
image
:
docker:${DOCKER_VERSION}
...
...
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