Skip to content

Commit

Permalink
added remove ec2 access
Browse files Browse the repository at this point in the history
  • Loading branch information
joelwembo committed Apr 12, 2024
1 parent 543dc5e commit 640c720
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
18 changes: 9 additions & 9 deletions deployments/Jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ pipeline{
}
environment {
DOCKERHUB_CREDENTIALS = credentials('globaldockerhub')
appName = "server"
registry = ""
registryCredential = ""
projectPath = ""
AWS_ACCESS_KEY_ID = credentials('your_aws_access_key_id')
AWS_SECRET_ACCESS_KEY = credentials('your_aws_secret_access_key')
AWS_REGION = 'your_aws_region'
EC2_INSTANCE = 'your_ec2_instance_id'
SSH_KEY = credentials('your_ssh_key')
// appName = "server"
// registry = ""
// registryCredential = ""
// projectPath = ""
// AWS_ACCESS_KEY_ID = credentials('your_aws_access_key_id')
// AWS_SECRET_ACCESS_KEY = credentials('your_aws_secret_access_key')
// AWS_REGION = 'your_aws_region'
// EC2_INSTANCE = 'your_ec2_instance_id'
// SSH_KEY = credentials('your_ssh_key')
}
stages {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
echo "Docker Compose Installed successfully installer"

# nginx installation for testing purpose
docker run --name mynginx1 -p 80:80 -d nginx
echo "nginx server running in your domain.com at port 80"

0 comments on commit 640c720

Please sign in to comment.