Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
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
DevOps Assignment
frontend
Commits
39ab51b5
Commit
39ab51b5
authored
1 year ago
by
Muhammad Suleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jenkinsfile
parent
2f78996b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Jenkinsfile
Jenkinsfile
+2
-2
No files found.
Jenkinsfile
View file @
39ab51b5
...
@@ -18,9 +18,9 @@ pipeline {
...
@@ -18,9 +18,9 @@ pipeline {
stage
(
'Push Docker Image to Docker Hub'
)
{
stage
(
'Push Docker Image to Docker Hub'
)
{
steps
{
steps
{
withCredentials
([
usernamePassword
(
credentialsId:
'docker
-hub-credentials'
,
usernameVariable:
'sulemantalpur6'
,
passwordVariable:
'Talpur226##
'
)])
{
withCredentials
([
usernamePassword
(
credentialsId:
'docker
Hub'
,
usernameVariable:
'DOCKER_HUB_USERNAME'
,
passwordVariable:
'DOCKER_HUB_PASSWORD
'
)])
{
sh
"docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD"
sh
"docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD"
sh
"docker push
your-image-name:tag
"
}
sh
"docker push
frontend:latest
"
}
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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