Commit da4c7f27 authored by Siva Rama Krishna's avatar Siva Rama Krishna

initial commit

parent a35de806
......@@ -3,12 +3,11 @@ variables:
SERVICE_PORT: 80
REGISTRY_URL: 279716074232.dkr.ecr.us-east-1.amazonaws.com/pgdockrepo
stages:
- Build
- ReleaseCleanup
- ReleaseDeploy
- Validation
Build:
stage: Build
......@@ -24,7 +23,6 @@ ReleaseCleanup:
- cd ./helm && /usr/local/bin/helm delete --purge $RELEASE_NAME && exit 0
allow_failure: true
ReleaseDeploy:
stage: ReleaseDeploy
script:
......@@ -32,3 +30,10 @@ ReleaseDeploy:
- 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
- cd ./helm && /usr/local/bin/helm install service --name $RELEASE_NAME
Validation:
stage: Validation
script:
- sleep 45
- if [ `curl -s -o /dev/null -I -w "%{http_code}" https://pgsandbox.altimetrik.com/$RELEASE_NAME/` = "200" ]; then exit 0; else exit 1; fi
allow_failure: false
......@@ -6,7 +6,6 @@ server {
default_type application/octet-stream;
gzip on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.";
......@@ -16,12 +15,12 @@ server {
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 9;
root /usr/share/nginx/html;
location /SERVICE_NAME/ {
add_header Content-Type: text/plain;
add_header Access-Control-Allow-Origin *;
try_files $uri $uri/ /SERVICE_NAME/index.html?$query_string;
}
}
}
......@@ -6,7 +6,6 @@ server {
default_type application/octet-stream;
gzip on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.";
......@@ -16,10 +15,8 @@ server {
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 9;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ /index.html =404;
}
......
......@@ -24,7 +24,7 @@
},
"scripts": {
"ng": "ng",
"start": "ng serve",
"start": "ng serve --port 3000 --host 0.0.0.0",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment