Skip to content

Conversation

@btsanil
Copy link

@btsanil btsanil commented Apr 25, 2025

pipeline {
agent any

stages {
    stage('Clone Repo') {
        steps {
            git 'https://github.com/your-username/your-repo.git'
        }
    }

    stage('Build Docker Image') {
        steps {
            sh 'docker build -t my-app:latest .'
        }
    }

    stage('Run Docker Container') {
        steps {
            sh 'docker run -d -p 8080:80 --name my-container my-app:latest'
        }
    }
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant