Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
axbasjkdkajdbkasd
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
axbasjkdkajdbkasd
Commits
0433a267
Commit
0433a267
authored
Oct 09, 2020
by
Siva Rama Krishna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit
parent
57b8c92d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
.gitlab-ci.yml
.gitlab-ci.yml
+9
-4
default.conf
nginx/default.conf
+5
-6
package.json
package.json
+1
-1
No files found.
.gitlab-ci.yml
View file @
0433a267
variables
:
RELEASE_NAME
:
"
projectx1
"
RELEASE_NAME
:
"
SERVICE_NAME
"
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 @
0433a267
...
...
@@ -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
/
projectx1
/ {
try_files
$
uri
$
uri
/ /
projectx1
/
index
.
html
?$
query_string
;
}
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
;
}
}
package.json
View file @
0433a267
...
...
@@ -3,7 +3,7 @@
"version"
:
"0.0.0"
,
"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