Skip to content

Commit ad6ec91

Browse files
authored
Update buildspec.yml
1 parent 499c69a commit ad6ec91

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

buildspec.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,4 @@ phases:
2121
- echo "Build completed"
2222
- aws ssm get-parameter --name maddy-test --with-decryption --query "Parameter.Value" --output text > private_key.pem
2323
- chmod 600 private_key.pem
24-
- ls -la /codebuild/output/ # Print the content of the output directory for debugging
25-
- cd /codebuild/output/
26-
- scp -o StrictHostKeyChecking=no -i private_key.pem $(find . -name webapp.war -type f) ubuntu@44.204.28.186:/home/ubuntu/webapp.war
24+
- scp -o StrictHostKeyChecking=no -i private_key.pem /codebuild/output/src*/src/webapp/target/webapp.war ubuntu@44.204.28.186:/home/ubuntu/webapp.war

0 commit comments

Comments
 (0)