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
f4e76d6c
Commit
f4e76d6c
authored
Jul 11, 2017
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CI templates for 9.4
parent
b39c9837
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
20 deletions
+25
-20
vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
+15
-4
vendor/gitlab-ci-yml/autodeploy/Kubernetes-with-canary.gitlab-ci.yml
...ab-ci-yml/autodeploy/Kubernetes-with-canary.gitlab-ci.yml
+4
-4
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
+3
-3
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
+3
-9
No files found.
vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
View file @
f4e76d6c
...
...
@@ -4,10 +4,21 @@ image: docker:latest
services
:
-
docker:dind
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build-master
:
stage
:
build
script
:
-
docker build --pull -t "$CI_REGISTRY_IMAGE" .
-
docker push "$CI_REGISTRY_IMAGE"
only
:
-
master
build
:
stage
:
build
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
docker build --pull -t "$CI_REGISTRY_IMAGE:CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:CI_COMMIT_REF_SLUG"
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except
:
-
master
vendor/gitlab-ci-yml/autodeploy/Kubernetes-with-canary.gitlab-ci.yml
View file @
f4e76d6c
...
...
@@ -28,7 +28,7 @@ canary:
-
command canary
environment
:
name
:
production
url
:
http://$CI_PROJECT_
NAME
.$KUBE_DOMAIN
url
:
http://$CI_PROJECT_
PATH_SLUG
.$KUBE_DOMAIN
when
:
manual
only
:
-
master
...
...
@@ -39,7 +39,7 @@ production:
-
command deploy
environment
:
name
:
production
url
:
http://$CI_PROJECT_
NAME
.$KUBE_DOMAIN
url
:
http://$CI_PROJECT_
PATH_SLUG
.$KUBE_DOMAIN
when
:
manual
only
:
-
master
...
...
@@ -50,7 +50,7 @@ staging:
-
command deploy
environment
:
name
:
staging
url
:
http://$CI_PROJECT_
NAME
-staging.$KUBE_DOMAIN
url
:
http://$CI_PROJECT_
PATH_SLUG
-staging.$KUBE_DOMAIN
only
:
-
master
...
...
@@ -60,7 +60,7 @@ review:
-
command deploy
environment
:
name
:
review/$CI_COMMIT_REF_NAME
url
:
http://$CI_PROJECT_
NAME
-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
url
:
http://$CI_PROJECT_
PATH_SLUG
-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop
:
stop_review
only
:
-
branches
...
...
vendor/gitlab-ci-yml/autodeploy/Kubernetes.gitlab-ci.yml
View file @
f4e76d6c
...
...
@@ -27,7 +27,7 @@ production:
-
command deploy
environment
:
name
:
production
url
:
http://$CI_PROJECT_
NAME
.$KUBE_DOMAIN
url
:
http://$CI_PROJECT_
PATH_SLUG
.$KUBE_DOMAIN
when
:
manual
only
:
-
master
...
...
@@ -38,7 +38,7 @@ staging:
-
command deploy
environment
:
name
:
staging
url
:
http://$CI_PROJECT_
NAME
-staging.$KUBE_DOMAIN
url
:
http://$CI_PROJECT_
PATH_SLUG
-staging.$KUBE_DOMAIN
only
:
-
master
...
...
@@ -48,7 +48,7 @@ review:
-
command deploy
environment
:
name
:
review/$CI_COMMIT_REF_NAME
url
:
http://$CI_PROJECT_
NAME
-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
url
:
http://$CI_PROJECT_
PATH_SLUG
-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop
:
stop_review
only
:
-
branches
...
...
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
View file @
f4e76d6c
...
...
@@ -23,38 +23,32 @@ build:
production
:
stage
:
production
variables
:
CI_ENVIRONMENT_URL
:
http://$CI_PROJECT_NAME.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
production
url
:
http://$CI_PROJECT_
NAME
.$KUBE_DOMAIN
url
:
http://$CI_PROJECT_
PATH_SLUG
.$KUBE_DOMAIN
when
:
manual
only
:
-
master
staging
:
stage
:
staging
variables
:
CI_ENVIRONMENT_URL
:
http://$CI_PROJECT_NAME-staging.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
staging
url
:
http://$CI_PROJECT_
NAME
-staging.$KUBE_DOMAIN
url
:
http://$CI_PROJECT_
PATH_SLUG
-staging.$KUBE_DOMAIN
only
:
-
master
review
:
stage
:
review
variables
:
CI_ENVIRONMENT_URL
:
http://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
review/$CI_COMMIT_REF_NAME
url
:
http://$CI_PROJECT_
NAME
-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
url
:
http://$CI_PROJECT_
PATH_SLUG
-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop
:
stop_review
only
:
-
branches
...
...
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