Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TestProjectDevEnv01
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
aray
TestProjectDevEnv01
Commits
68e81d1e
Commit
68e81d1e
authored
Feb 20, 2023
by
aray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit by admin
parent
b8f775d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
.gitlabCi3.yml
.gitlabCi3.yml
+44
-0
No files found.
.gitlabCi3.yml
0 → 100644
View file @
68e81d1e
variables
:
RELEASE_NAME
:
"
SERVICE_NAME"
SERVICE_PORT
:
8080
REGISTRY_URL
:
751503455312.dkr.ecr.us-west-2.amazonaws.com/pgnonprod
SONAR_URL
:
"
http://pg-sonar-altimetrik-com-82028342.us-west-2.elb.amazonaws.com"
SONAR_LOGIN
:
"
cc3fc35cad01a325d1b3904bcf3aa38b153fa7f1"
stages
:
-
Build
-
Test
-
ReleaseCleanup
-
ReleaseDeploy
-
Validation
Build
:
stage
:
Build
script
:
-
mvn clean install -Dk8s.db.env=db-config-k8s
-
$(aws ecr get-login --no-include-email --region us-west-2)
-
docker build -t 751503455312.dkr.ecr.us-west-2.amazonaws.com/pgnonprod:$CI_PIPELINE_ID .
-
docker push 751503455312.dkr.ecr.us-west-2.amazonaws.com/pgnonprod:$CI_PIPELINE_ID
ReleaseCleanup
:
stage
:
ReleaseCleanup
script
:
-
echo `pwd`
-
cd ./helm && /sbin/helm delete --purge $RELEASE_NAME && exit 0
allow_failure
:
true
ReleaseDeploy
:
stage
:
ReleaseDeploy
script
:
-
echo `pwd`
-
sed -i s/#BUILD_ID#/$CI_PIPELINE_ID/g ./helm/service/values.yaml
-
sed -i s/#SERVICE_PORT#/$SERVICE_PORT/g ./helm/service/values.yaml
-
kubectl config use-context arn:aws:eks:us-west-2:751503455312:cluster/pg-eks
-
cd ./helm && /sbin/helm install service --name $RELEASE_NAME
Validation
:
stage
:
Validation
script
:
-
sleep 45
-
if [ `curl -s -o /dev/null -I -w "%{http_code}" https://pgtest.altimetrik.com/$RELEASE_NAME` = "200" ]; then exit 0; else exit 1; fi
allow_failure
:
false
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