Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CSS-Engine-Python-Cusca
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
Proyectos-Innovacion-2024
CSS-Engine-Python-Cusca
Commits
b4f5b77c
Commit
b4f5b77c
authored
May 09, 2024
by
Cristian Aguirre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Jenkinsfile
parent
6e8362cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
Jenkinsfile
Jenkinsfile
+27
-0
No files found.
Jenkinsfile
0 → 100644
View file @
b4f5b77c
pipeline
{
agent
any
environment
{
IMAGE
=
"css-engine-python-cusca-bank"
VERSION
=
"1.0.0"
url
=
"http://192.168.27.148:5000"
tag_name
=
"192.168.27.148:5000"
imagename
=
"${tag_name}/bytesw/css/${IMAGE}"
credentials
=
"admin-docker-hub"
}
stages
{
stage
(
'Deploy Image'
)
{
steps
{
script
{
docker
.
withRegistry
(
url
,
credentials
)
{
sh
"docker build -t ${IMAGE}:${VERSION} ."
sh
"docker tag ${IMAGE}:${VERSION} ${imagename}:${VERSION}"
sh
"docker push ${imagename}:${VERSION}"
sh
"docker tag ${imagename}:${VERSION} ${imagename}:latest"
sh
"docker push ${imagename}:latest"
}
}
}
}
}
}
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