BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
7a6925b2
Commit
7a6925b2
authored
Mar 10, 2017
by
Z.J. van de Weg
Committed by
Lin Jen-Shin
Mar 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update templates with new CI variables
parent
daee8baa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
29 deletions
+29
-29
Docker.gitlab-ci.yml
vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
+2
-2
Maven.gitlab-ci.yml
vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
+4
-4
OpenShift.gitlab-ci.yml
vendor/gitlab-ci-yml/OpenShift.gitlab-ci.yml
+6
-6
Kubernetes.gitlab-ci.yml
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
+8
-8
OpenShift.gitlab-ci.yml
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
+9
-9
No files found.
vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
View file @
7a6925b2
...
...
@@ -7,7 +7,7 @@ services:
build
:
stage
:
build
script
:
-
export IMAGE_TAG=$(echo -en $CI_
BUILD
_REF_NAME | tr -c '[:alnum:]_.-' '-')
-
docker login -u "gitlab-ci-token" -p "$CI_
BUILD
_TOKEN" $CI_REGISTRY
-
export IMAGE_TAG=$(echo -en $CI_
COMMIT
_REF_NAME | tr -c '[:alnum:]_.-' '-')
-
docker login -u "gitlab-ci-token" -p "$CI_
JOB
_TOKEN" $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" .
-
docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
View file @
7a6925b2
...
...
@@ -3,9 +3,9 @@
# For docker image tags see https://hub.docker.com/_/maven/
#
# For general lifecycle information see https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
#
#
# This template will build and test your projects as well as create the documentation.
#
#
# * Caches downloaded dependencies and plugins between invocation.
# * Does only verify merge requests but deploy built artifacts of the
# master branch.
...
...
@@ -24,12 +24,12 @@ variables:
MAVEN_CLI_OPTS
:
"
--batch-mode
--errors
--fail-at-end
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true"
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_
BUILD
_REF_NAME"'
# To keep cache across branches add 'key: "$CI_
JOB
_REF_NAME"'
cache
:
paths
:
-
.m2/repository
# This will only validate and compile stuff and run e.g. maven-enforcer-plugin.
# This will only validate and compile stuff and run e.g. maven-enforcer-plugin.
# Because some enforcer rules might check dependency convergence and class duplications
# we use `test-compile` here instead of `validate`, so the correct classpath is picked up.
.validate
:
&validate
...
...
vendor/gitlab-ci-yml/OpenShift.gitlab-ci.yml
View file @
7a6925b2
...
...
@@ -38,11 +38,11 @@ review:
<<
:
*deploy
stage
:
review
variables
:
APP
:
$CI_
BUILD
_REF_NAME
APP_HOST
:
$CI_PROJECT_NAME-$CI_
BUILD_REF_NAME
.$OPENSHIFT_DOMAIN
APP
:
$CI_
COMMIT
_REF_NAME
APP_HOST
:
$CI_PROJECT_NAME-$CI_
ENVIRONMENT_SLUG
.$OPENSHIFT_DOMAIN
environment
:
name
:
review/$CI_
BUILD_REF_NAME
url
:
http://$CI_PROJECT_NAME-$CI_
BUILD_REF_NAME
.$OPENSHIFT_DOMAIN
name
:
review/$CI_
COMMIT_REF_SLUG
url
:
http://$CI_PROJECT_NAME-$CI_
ENVIRONMENT_SLUG
.$OPENSHIFT_DOMAIN
on_stop
:
stop-review
only
:
-
branches
...
...
@@ -56,10 +56,10 @@ stop-review:
-
oc delete all -l "app=$APP"
when
:
manual
variables
:
APP
:
$CI_
BUILD
_REF_NAME
APP
:
$CI_
COMMIT
_REF_NAME
GIT_STRATEGY
:
none
environment
:
name
:
review/$CI_
BUILD_REF_NAME
name
:
review/$CI_
COMMIT_REF_SLUG
action
:
stop
only
:
-
branches
...
...
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
View file @
7a6925b2
...
...
@@ -24,12 +24,12 @@ build:
production
:
stage
:
production
variables
:
CI_ENVIRONMENT_URL
:
http://
production
.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://
$CI_PROJECT_NAME
.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
production
url
:
http://
production
.$KUBE_DOMAIN
url
:
http://
$CI_PROJECT_NAME
.$KUBE_DOMAIN
when
:
manual
only
:
-
master
...
...
@@ -37,24 +37,24 @@ production:
staging
:
stage
:
staging
variables
:
CI_ENVIRONMENT_URL
:
http://staging.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://
$CI_PROJECT_NAME-
staging.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
staging
url
:
http://staging.$KUBE_DOMAIN
url
:
http://
$CI_PROJECT_NAME-
staging.$KUBE_DOMAIN
only
:
-
master
review
:
stage
:
review
variables
:
CI_ENVIRONMENT_URL
:
http://$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://$CI_
PROJECT_NAME-$CI_
ENVIRONMENT_SLUG.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
review/$CI_
BUILD
_REF_NAME
url
:
http://$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
name
:
review/$CI_
COMMIT
_REF_NAME
url
:
http://$CI_
PROJECT_NAME-$CI_
ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop
:
stop_review
only
:
-
branches
...
...
@@ -68,7 +68,7 @@ stop_review:
script
:
-
command destroy
environment
:
name
:
review/$CI_
BUILD
_REF_NAME
name
:
review/$CI_
COMMIT
_REF_NAME
action
:
stop
when
:
manual
only
:
...
...
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
View file @
7a6925b2
# Expla
ination on the scripts:
# Expla
nation on the scripts:
# https://gitlab.com/gitlab-examples/openshift-deploy/blob/master/README.md
image
:
registry.gitlab.com/gitlab-examples/openshift-deploy
...
...
@@ -24,12 +24,12 @@ build:
production
:
stage
:
production
variables
:
CI_ENVIRONMENT_URL
:
http://
production
.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://
$CI_PROJECT_NAME
.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
production
url
:
http://
production
.$KUBE_DOMAIN
url
:
http://
$CI_PROJECT_NAME
.$KUBE_DOMAIN
when
:
manual
only
:
-
master
...
...
@@ -37,24 +37,24 @@ production:
staging
:
stage
:
staging
variables
:
CI_ENVIRONMENT_URL
:
http://staging.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://
$CI_PROJECT_NAME-
staging.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
staging
url
:
http://staging.$KUBE_DOMAIN
url
:
http://
$CI_PROJECT_NAME-
staging.$KUBE_DOMAIN
only
:
-
master
review
:
stage
:
review
variables
:
CI_ENVIRONMENT_URL
:
http://$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://$CI_
PROJECT_NAME-$CI_
ENVIRONMENT_SLUG.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
review/$CI_
BUILD
_REF_NAME
url
:
http://$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
name
:
review/$CI_
COMMIT
_REF_NAME
url
:
http://$CI_
PROJECT_NAME-$CI_
ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop
:
stop_review
only
:
-
branches
...
...
@@ -68,7 +68,7 @@ stop_review:
script
:
-
command destroy
environment
:
name
:
review/$CI_
BUILD
_REF_NAME
name
:
review/$CI_
COMMIT
_REF_NAME
action
:
stop
when
:
manual
only
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment