Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dms-mobile-sales-app
Project
Project
Details
Activity
Releases
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
Sugar Pramana
dms-mobile-sales-app
Commits
d024e0c6
Commit
d024e0c6
authored
Apr 19, 2026
by
Sugar Pramana
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of
http://103.44.149.204/s.pramana/dms-mobile-sales-app
parents
21a78f35
cfc1dab6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
0 deletions
+92
-0
Dockerfile
Dockerfile
+14
-0
Jenkinsfile
Jenkinsfile
+78
-0
No files found.
Dockerfile
0 → 100644
View file @
d024e0c6
FROM
node:22-alpine
WORKDIR
/app
COPY
package*.json ./
RUN
npm
install
COPY
. .
RUN
npm run build
EXPOSE
9000
CMD
["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "9000"]
Jenkinsfile
0 → 100644
View file @
d024e0c6
pipeline
{
agent
any
environment
{
datedeploy
=
sh
(
script:
"date +%d%m%Y"
,
returnStdout:
true
).
trim
()
datebckp
=
sh
(
script:
"date +%Y-%m-%d-%H:%M"
,
returnStdout:
true
).
trim
()
tagname
=
"RC.${datedeploy}-${env.BUILD_NUMBER}-UAT"
appsName
=
"dms-aftersales-mobile"
gitBranch
=
"$gitBranch"
AWS_REGION
=
'ap-southeast-3'
ECR_REGISTRY
=
'689978033173.dkr.ecr.ap-southeast-3.amazonaws.com'
registry
=
'689978033173.dkr.ecr.ap-southeast-3.amazonaws.com/ddms/$appsName'
gitUrl
=
'http://103.44.149.204/s.pramana/dms-aftersales-app.git'
kubeuat
=
'kubectl --context=staging'
}
tools
{
jdk
"jdk8"
}
stages
{
stage
(
'Debug'
)
{
steps
{
sh
'echo "Branch: $gitlabBranch"'
sh
'git branch -a'
}
}
stage
(
'Login to ECR'
)
{
steps
{
sh
'''
aws --version
aws ecr get-login-password --region ${AWS_REGION} \
| docker login --username AWS --password-stdin ${ECR_REGISTRY}
'''
}
}
stage
(
'Build & Deploy Image to ali'
)
{
steps
{
script
{
sh
"docker buildx build -t ${registry}:${tagname} --push . "
}
}
}
stage
(
'Triggering Kubernetes'
)
{
steps
{
script
{
echo
"uat-b"
sh
"${kubeuat} set image deploy/${appsName} ${appsName}=${registry}:${tagname} -n uat-b"
}
}
}
}
post
{
always
{
deleteDir
()
sh
"""
curl -s -X POST https://api.telegram.org/bot7250753069:AAGoB4-D0tu0t62u9NvUVSE2JUP6PHWzyzA/sendMessage -d chat_id=-4752319604 -d parse_mode="HTML" -d text=" \
<b>Job Name</b> : ${env.JOB_NAME} \n <b>Deploy</b>: AWS \n <b>Branch</b>: ${gitlabBranch} \n <b>Build </b> : ${env.BUILD_NUMBER} \n <b>Result</b> : ${currentBuild.currentResult} \n <b>Triggered by</b>: ${gitlabUserName} \n <b>Url</b> : ${env.BUILD_URL}"
"""
}
success
{
echo
"Release Success"
}
failure
{
echo
"Release Failed"
}
cleanup
{
echo
"Clean up in post work space"
cleanWs
()
}
}
}
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