Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AWS Kubectl
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IT Common Platform
tenant-support
images
AWS Kubectl
Commits
9a1c1eca
Commit
9a1c1eca
authored
4 years ago
by
Nandan Sadineni
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
968d569a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Nsadineni/test ci
Pipeline
#192927
passed with stages
Stage:
Stage:
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-5
7 additions, 5 deletions
.gitlab-ci.yml
with
7 additions
and
5 deletions
.gitlab-ci.yml
+
7
−
5
View file @
9a1c1eca
...
@@ -4,7 +4,7 @@ stages:
...
@@ -4,7 +4,7 @@ stages:
-
release
-
release
variables
:
variables
:
CONTAINER_TEST_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_
REF_SLUG
CONTAINER_TEST_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_
SHORT_SHA
CONTAINER_RELEASE_IMAGE
:
$CI_REGISTRY_IMAGE:latest
CONTAINER_RELEASE_IMAGE
:
$CI_REGISTRY_IMAGE:latest
before_script
:
before_script
:
...
@@ -12,11 +12,9 @@ before_script:
...
@@ -12,11 +12,9 @@ before_script:
build-except-master
:
build-except-master
:
stage
:
build
stage
:
build
variables
:
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
script
:
script
:
-
docker build -t $
IMAGE_T
AG .
-
docker build -t $
CONTAINER_TEST_IM
AG
E
.
-
docker push $
IMAGE_T
AG
-
docker push $
CONTAINER_TEST_IM
AG
E
only
:
only
:
-
branches
-
branches
except
:
except
:
...
@@ -27,6 +25,10 @@ test:
...
@@ -27,6 +25,10 @@ test:
script
:
script
:
-
docker pull $CONTAINER_TEST_IMAGE
-
docker pull $CONTAINER_TEST_IMAGE
-
docker run $CONTAINER_TEST_IMAGE /bin/sh
-
docker run $CONTAINER_TEST_IMAGE /bin/sh
only
:
-
branches
except
:
-
master
release-image
:
release-image
:
stage
:
release
stage
:
release
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment