Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
htmlasset
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shah Erhan
htmlasset
Commits
d92eb737
Commit
d92eb737
authored
Mar 31, 2024
by
shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
f8823495
Pipeline
#13409
passed with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
0 deletions
+54
-0
.gitlab-ci.yml
.gitlab-ci.yml
+26
-0
Dockerfile
Dockerfile
+4
-0
nginx.conf
nginx.conf
+24
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
d92eb737
variables
:
IMG_NAME
:
"
htmlasset"
REGISTRY_USER
:
"
skb"
REGISTRY_PASSWORD
:
"
Ctsb@2018"
REGISTRY_URL
:
"
repo.cybersolution.com.my:9005"
cache
:
key
:
$CI_COMMIT_REF_SLUG
docker-build
:
stage
:
deploy
image
:
docker:20.10
services
:
-
docker:20.10-dind
before_script
:
# - 'VERSION=$(cat VERSION) && echo "version: $VERSION"'
# - 'TAG="$IMG_NAME:$VERSION" && echo "tag: $TAG"'
-
'
TAG="$IMG_NAME:latest"
&&
echo
"tag:
$TAG"'
-
'
PUSH_TAG="$REGISTRY_URL/$TAG"
&&
echo
"pushtag:
$PUSH_TAG"'
script
:
-
docker build --rm -t $TAG .
-
docker login -u $REGISTRY_USER -p $REGISTRY_PASSWORD $REGISTRY_URL
-
docker tag $TAG $PUSH_TAG
-
docker push $PUSH_TAG
-
docker image rm $PUSH_TAG $TAG
only
:
-
master
Dockerfile
0 → 100644
View file @
d92eb737
FROM
nginx:1.25.4-alpine
COPY
./commercial_1 /usr/share/nginx/html
COPY
nginx.conf /etc/nginx/conf.d/default.conf
\ No newline at end of file
nginx.conf
0 → 100644
View file @
d92eb737
server
{
listen
80
;
sendfile
on
;
default_type
application/octet-stream
;
gzip
on
;
gzip_http_version
1
.1
;
gzip_disable
"MSIE
[1-6]
\
."
;
gzip_min_length
256
;
gzip_vary
on
;
gzip_proxied
expired
no-cache
no-store
private
auth
;
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
/
{
index
index.html
index.htm
;
try_files
$uri
$uri
/
/index.html
=
404
;
}
}
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