Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
6624218d
Commit
6624218d
authored
Mar 13, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zj-update-templates' into 'master'
Update templates with new CI variables See merge request !9852
parents
9ed3db91
548b6074
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
29 deletions
+29
-29
vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
+2
-2
vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
+4
-4
vendor/gitlab-ci-yml/OpenShift.gitlab-ci.yml
vendor/gitlab-ci-yml/OpenShift.gitlab-ci.yml
+6
-6
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
+8
-8
vendor/gitlab-ci-yml/autodeploy/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 @
6624218d
...
@@ -7,7 +7,7 @@ services:
...
@@ -7,7 +7,7 @@ services:
build
:
build
:
stage
:
build
stage
:
build
script
:
script
:
-
export IMAGE_TAG=$(echo -en $CI_
BUILD
_REF_NAME | tr -c '[:alnum:]_.-' '-')
-
export IMAGE_TAG=$(echo -en $CI_
COMMIT
_REF_NAME | tr -c '[:alnum:]_.-' '-')
-
docker login -u "gitlab-ci-token" -p "$CI_
BUILD
_TOKEN" $CI_REGISTRY
-
docker login -u "gitlab-ci-token" -p "$CI_
JOB
_TOKEN" $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" .
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" .
-
docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
-
docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
View file @
6624218d
...
@@ -24,7 +24,7 @@ variables:
...
@@ -24,7 +24,7 @@ variables:
MAVEN_CLI_OPTS
:
"
--batch-mode
--errors
--fail-at-end
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true"
MAVEN_CLI_OPTS
:
"
--batch-mode
--errors
--fail-at-end
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true"
# Cache downloaded dependencies and plugins between builds.
# 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
:
cache
:
paths
:
paths
:
-
.m2/repository
-
.m2/repository
...
...
vendor/gitlab-ci-yml/OpenShift.gitlab-ci.yml
View file @
6624218d
...
@@ -38,11 +38,11 @@ review:
...
@@ -38,11 +38,11 @@ review:
<<
:
*deploy
<<
:
*deploy
stage
:
review
stage
:
review
variables
:
variables
:
APP
:
$CI_
BUILD
_REF_NAME
APP
:
$CI_
COMMIT
_REF_NAME
APP_HOST
:
$CI_PROJECT_NAME-$CI_
BUILD_REF_NAME
.$OPENSHIFT_DOMAIN
APP_HOST
:
$CI_PROJECT_NAME-$CI_
ENVIRONMENT_SLUG
.$OPENSHIFT_DOMAIN
environment
:
environment
:
name
:
review/$CI_
BUILD_REF_NAME
name
:
review/$CI_
COMMIT_REF_SLUG
url
:
http://$CI_PROJECT_NAME-$CI_
BUILD_REF_NAME
.$OPENSHIFT_DOMAIN
url
:
http://$CI_PROJECT_NAME-$CI_
ENVIRONMENT_SLUG
.$OPENSHIFT_DOMAIN
on_stop
:
stop-review
on_stop
:
stop-review
only
:
only
:
-
branches
-
branches
...
@@ -56,10 +56,10 @@ stop-review:
...
@@ -56,10 +56,10 @@ stop-review:
-
oc delete all -l "app=$APP"
-
oc delete all -l "app=$APP"
when
:
manual
when
:
manual
variables
:
variables
:
APP
:
$CI_
BUILD
_REF_NAME
APP
:
$CI_
COMMIT
_REF_NAME
GIT_STRATEGY
:
none
GIT_STRATEGY
:
none
environment
:
environment
:
name
:
review/$CI_
BUILD_REF_NAME
name
:
review/$CI_
COMMIT_REF_SLUG
action
:
stop
action
:
stop
only
:
only
:
-
branches
-
branches
...
...
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
View file @
6624218d
...
@@ -24,12 +24,12 @@ build:
...
@@ -24,12 +24,12 @@ build:
production
:
production
:
stage
:
production
stage
:
production
variables
:
variables
:
CI_ENVIRONMENT_URL
:
http://
production
.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://
$CI_PROJECT_NAME
.$KUBE_DOMAIN
script
:
script
:
-
command deploy
-
command deploy
environment
:
environment
:
name
:
production
name
:
production
url
:
http://
production
.$KUBE_DOMAIN
url
:
http://
$CI_PROJECT_NAME
.$KUBE_DOMAIN
when
:
manual
when
:
manual
only
:
only
:
-
master
-
master
...
@@ -37,24 +37,24 @@ production:
...
@@ -37,24 +37,24 @@ production:
staging
:
staging
:
stage
:
staging
stage
:
staging
variables
:
variables
:
CI_ENVIRONMENT_URL
:
http://staging.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://
$CI_PROJECT_NAME-
staging.$KUBE_DOMAIN
script
:
script
:
-
command deploy
-
command deploy
environment
:
environment
:
name
:
staging
name
:
staging
url
:
http://staging.$KUBE_DOMAIN
url
:
http://
$CI_PROJECT_NAME-
staging.$KUBE_DOMAIN
only
:
only
:
-
master
-
master
review
:
review
:
stage
:
review
stage
:
review
variables
:
variables
:
CI_ENVIRONMENT_URL
:
http://$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://$CI_
PROJECT_NAME-$CI_
ENVIRONMENT_SLUG.$KUBE_DOMAIN
script
:
script
:
-
command deploy
-
command deploy
environment
:
environment
:
name
:
review/$CI_
BUILD
_REF_NAME
name
:
review/$CI_
COMMIT
_REF_NAME
url
:
http://$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
url
:
http://$CI_
PROJECT_NAME-$CI_
ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop
:
stop_review
on_stop
:
stop_review
only
:
only
:
-
branches
-
branches
...
@@ -68,7 +68,7 @@ stop_review:
...
@@ -68,7 +68,7 @@ stop_review:
script
:
script
:
-
command destroy
-
command destroy
environment
:
environment
:
name
:
review/$CI_
BUILD
_REF_NAME
name
:
review/$CI_
COMMIT
_REF_NAME
action
:
stop
action
:
stop
when
:
manual
when
:
manual
only
:
only
:
...
...
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
View file @
6624218d
# Expla
ination on the scripts:
# Expla
nation on the scripts:
# https://gitlab.com/gitlab-examples/openshift-deploy/blob/master/README.md
# https://gitlab.com/gitlab-examples/openshift-deploy/blob/master/README.md
image
:
registry.gitlab.com/gitlab-examples/openshift-deploy
image
:
registry.gitlab.com/gitlab-examples/openshift-deploy
...
@@ -24,12 +24,12 @@ build:
...
@@ -24,12 +24,12 @@ build:
production
:
production
:
stage
:
production
stage
:
production
variables
:
variables
:
CI_ENVIRONMENT_URL
:
http://
production
.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://
$CI_PROJECT_NAME
.$KUBE_DOMAIN
script
:
script
:
-
command deploy
-
command deploy
environment
:
environment
:
name
:
production
name
:
production
url
:
http://
production
.$KUBE_DOMAIN
url
:
http://
$CI_PROJECT_NAME
.$KUBE_DOMAIN
when
:
manual
when
:
manual
only
:
only
:
-
master
-
master
...
@@ -37,24 +37,24 @@ production:
...
@@ -37,24 +37,24 @@ production:
staging
:
staging
:
stage
:
staging
stage
:
staging
variables
:
variables
:
CI_ENVIRONMENT_URL
:
http://staging.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://
$CI_PROJECT_NAME-
staging.$KUBE_DOMAIN
script
:
script
:
-
command deploy
-
command deploy
environment
:
environment
:
name
:
staging
name
:
staging
url
:
http://staging.$KUBE_DOMAIN
url
:
http://
$CI_PROJECT_NAME-
staging.$KUBE_DOMAIN
only
:
only
:
-
master
-
master
review
:
review
:
stage
:
review
stage
:
review
variables
:
variables
:
CI_ENVIRONMENT_URL
:
http://$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
CI_ENVIRONMENT_URL
:
http://$CI_
PROJECT_NAME-$CI_
ENVIRONMENT_SLUG.$KUBE_DOMAIN
script
:
script
:
-
command deploy
-
command deploy
environment
:
environment
:
name
:
review/$CI_
BUILD
_REF_NAME
name
:
review/$CI_
COMMIT
_REF_NAME
url
:
http://$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
url
:
http://$CI_
PROJECT_NAME-$CI_
ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop
:
stop_review
on_stop
:
stop_review
only
:
only
:
-
branches
-
branches
...
@@ -68,7 +68,7 @@ stop_review:
...
@@ -68,7 +68,7 @@ stop_review:
script
:
script
:
-
command destroy
-
command destroy
environment
:
environment
:
name
:
review/$CI_
BUILD
_REF_NAME
name
:
review/$CI_
COMMIT
_REF_NAME
action
:
stop
action
:
stop
when
:
manual
when
:
manual
only
:
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