Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
Angular5DemoProject
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
testPCCC
Angular5DemoProject
Commits
da4c7f27
Commit
da4c7f27
authored
Oct 09, 2020
by
Siva Rama Krishna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit
parent
a35de806
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
.gitlab-ci.yml
.gitlab-ci.yml
+8
-3
default.conf
nginx/default.conf
+3
-4
default.conf.txt
nginx/default.conf.txt
+0
-3
package.json
package.json
+1
-1
No files found.
.gitlab-ci.yml
View file @
da4c7f27
...
...
@@ -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
nginx/default.conf
View file @
da4c7f27
...
...
@@ -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
;
}
}
}
nginx/default.conf.txt
View file @
da4c7f27
...
...
@@ -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;
}
...
...
package.json
View file @
da4c7f27
...
...
@@ -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"
,
...
...
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