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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
a9b8358d
Commit
a9b8358d
authored
Mar 07, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
ff8d1bd9
80fea82f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
3 deletions
+25
-3
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
changelogs/unreleased/auto-devops-tags.yml
changelogs/unreleased/auto-devops-tags.yml
+5
-0
doc/topics/autodevops/index.md
doc/topics/autodevops/index.md
+1
-1
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
+18
-2
No files found.
.gitlab-ci.yml
View file @
a9b8358d
...
...
@@ -855,6 +855,7 @@ gitlab:assets:compile:
-
gitlab-org
gitlab:ui:visual:
<<
:
*except-docs
tags
:
-
gitlab-org
before_script
:
[]
...
...
changelogs/unreleased/auto-devops-tags.yml
0 → 100644
View file @
a9b8358d
---
title
:
Adds Auto DevOps build job for tags
merge_request
:
25718
author
:
walkafwalka
type
:
added
doc/topics/autodevops/index.md
View file @
a9b8358d
...
...
@@ -291,7 +291,7 @@ Auto Build creates a build of the application using an existing `Dockerfile` or
Heroku buildpacks.
Either way, the resulting Docker image is automatically pushed to the
[
Container Registry
][
container-registry
]
and tagged with the commit SHA.
[
Container Registry
][
container-registry
]
and tagged with the commit SHA
or tag
.
#### Auto Build using a Dockerfile
...
...
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
View file @
a9b8358d
...
...
@@ -81,6 +81,7 @@ build:
-
/build/build.sh
only
:
-
branches
-
tags
test
:
services
:
...
...
@@ -95,6 +96,7 @@ test:
-
/bin/herokuish buildpack test
only
:
-
branches
-
tags
except
:
variables
:
-
$TEST_DISABLED
...
...
@@ -112,6 +114,7 @@ code_quality:
paths
:
[
gl-code-quality-report.json
]
only
:
-
branches
-
tags
except
:
variables
:
-
$CODE_QUALITY_DISABLED
...
...
@@ -129,6 +132,7 @@ license_management:
only
:
refs
:
-
branches
-
tags
variables
:
-
$GITLAB_FEATURES =~ /\blicense_management\b/
except
:
...
...
@@ -151,6 +155,7 @@ performance:
only
:
refs
:
-
branches
-
tags
kubernetes
:
active
except
:
variables
:
...
...
@@ -171,6 +176,7 @@ sast:
only
:
refs
:
-
branches
-
tags
variables
:
-
$GITLAB_FEATURES =~ /\bsast\b/
except
:
...
...
@@ -192,6 +198,7 @@ dependency_scanning:
only
:
refs
:
-
branches
-
tags
variables
:
-
$GITLAB_FEATURES =~ /\bdependency_scanning\b/
except
:
...
...
@@ -212,6 +219,7 @@ container_scanning:
only
:
refs
:
-
branches
-
tags
variables
:
-
$GITLAB_FEATURES =~ /\bcontainer_scanning\b/
except
:
...
...
@@ -231,6 +239,7 @@ dast:
only
:
refs
:
-
branches
-
tags
kubernetes
:
active
variables
:
-
$GITLAB_FEATURES =~ /\bdast\b/
...
...
@@ -260,6 +269,7 @@ review:
only
:
refs
:
-
branches
-
tags
kubernetes
:
active
except
:
refs
:
...
...
@@ -283,6 +293,7 @@ stop_review:
only
:
refs
:
-
branches
-
tags
kubernetes
:
active
except
:
refs
:
...
...
@@ -488,8 +499,13 @@ rollout 100%:
[[ "$TRACE" ]] && set -x
auto_database_url=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${CI_ENVIRONMENT_SLUG}-postgres:5432/${POSTGRES_DB}
export DATABASE_URL=${DATABASE_URL-$auto_database_url}
export CI_APPLICATION_REPOSITORY=$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG
export CI_APPLICATION_TAG=$CI_COMMIT_SHA
if [[ -z "$CI_COMMIT_TAG" ]]; then
export CI_APPLICATION_REPOSITORY=$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG
export CI_APPLICATION_TAG=$CI_COMMIT_SHA
else
export CI_APPLICATION_REPOSITORY=$CI_REGISTRY_IMAGE
export CI_APPLICATION_TAG=$CI_COMMIT_TAG
fi
export TILLER_NAMESPACE=$KUBE_NAMESPACE
# Extract "MAJOR.MINOR" from CI_SERVER_VERSION and generate "MAJOR-MINOR-stable" for Security Products
export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
...
...
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