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
6208d835
Commit
6208d835
authored
Mar 02, 2019
by
walkafwalka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add build for tags
parent
615c14b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
changelogs/unreleased/auto-devops-tags.yml
changelogs/unreleased/auto-devops-tags.yml
+5
-0
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
+14
-2
No files found.
changelogs/unreleased/auto-devops-tags.yml
0 → 100644
View file @
6208d835
---
title
:
Adds Auto DevOps build job for tags
merge_request
:
25718
author
:
walkafwalka
type
:
added
lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
View file @
6208d835
...
@@ -81,6 +81,7 @@ build:
...
@@ -81,6 +81,7 @@ build:
-
/build/build.sh
-
/build/build.sh
only
:
only
:
-
branches
-
branches
-
tags
test
:
test
:
services
:
services
:
...
@@ -95,6 +96,7 @@ test:
...
@@ -95,6 +96,7 @@ test:
-
/bin/herokuish buildpack test
-
/bin/herokuish buildpack test
only
:
only
:
-
branches
-
branches
-
tags
except
:
except
:
variables
:
variables
:
-
$TEST_DISABLED
-
$TEST_DISABLED
...
@@ -112,6 +114,7 @@ code_quality:
...
@@ -112,6 +114,7 @@ code_quality:
paths
:
[
gl-code-quality-report.json
]
paths
:
[
gl-code-quality-report.json
]
only
:
only
:
-
branches
-
branches
-
tags
except
:
except
:
variables
:
variables
:
-
$CODE_QUALITY_DISABLED
-
$CODE_QUALITY_DISABLED
...
@@ -129,6 +132,7 @@ license_management:
...
@@ -129,6 +132,7 @@ license_management:
only
:
only
:
refs
:
refs
:
-
branches
-
branches
-
tags
variables
:
variables
:
-
$GITLAB_FEATURES =~ /\blicense_management\b/
-
$GITLAB_FEATURES =~ /\blicense_management\b/
except
:
except
:
...
@@ -171,6 +175,7 @@ sast:
...
@@ -171,6 +175,7 @@ sast:
only
:
only
:
refs
:
refs
:
-
branches
-
branches
-
tags
variables
:
variables
:
-
$GITLAB_FEATURES =~ /\bsast\b/
-
$GITLAB_FEATURES =~ /\bsast\b/
except
:
except
:
...
@@ -192,6 +197,7 @@ dependency_scanning:
...
@@ -192,6 +197,7 @@ dependency_scanning:
only
:
only
:
refs
:
refs
:
-
branches
-
branches
-
tags
variables
:
variables
:
-
$GITLAB_FEATURES =~ /\bdependency_scanning\b/
-
$GITLAB_FEATURES =~ /\bdependency_scanning\b/
except
:
except
:
...
@@ -212,6 +218,7 @@ container_scanning:
...
@@ -212,6 +218,7 @@ container_scanning:
only
:
only
:
refs
:
refs
:
-
branches
-
branches
-
tags
variables
:
variables
:
-
$GITLAB_FEATURES =~ /\bcontainer_scanning\b/
-
$GITLAB_FEATURES =~ /\bcontainer_scanning\b/
except
:
except
:
...
@@ -488,8 +495,13 @@ rollout 100%:
...
@@ -488,8 +495,13 @@ rollout 100%:
[[ "$TRACE" ]] && set -x
[[ "$TRACE" ]] && set -x
auto_database_url=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${CI_ENVIRONMENT_SLUG}-postgres:5432/${POSTGRES_DB}
auto_database_url=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${CI_ENVIRONMENT_SLUG}-postgres:5432/${POSTGRES_DB}
export DATABASE_URL=${DATABASE_URL-$auto_database_url}
export DATABASE_URL=${DATABASE_URL-$auto_database_url}
export CI_APPLICATION_REPOSITORY=$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG
if [[ -z "$CI_COMMIT_TAG" ]]; then
export CI_APPLICATION_TAG=$CI_COMMIT_SHA
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
export TILLER_NAMESPACE=$KUBE_NAMESPACE
# Extract "MAJOR.MINOR" from CI_SERVER_VERSION and generate "MAJOR-MINOR-stable" for Security Products
# 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/')
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