File manager - Edit - /var/www/payraty/hris/bitbucket-pipelines.yml
Back
image: php:8.2 pipelines: branches: develop: - step: name: Build and test script: - echo Building.... # Your build and test commands here - step: name: Deploy To EC2 script: - apt-get update - apt-get install -y openssh-client git # Setup SSH properly - mkdir -p ~/.ssh - chmod 700 ~/.ssh # Set proper key permissions - chmod 600 payraty-dev-key.pem # Add host key and disable strict checking for automation - ssh-keyscan -H ec2-18-130-182-202.eu-west-2.compute.amazonaws.com >> ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts # SSH with additional options for reliability - ssh -i payraty-dev-key.pem -o StrictHostKeyChecking=no -o UserKnownHostsFile=~/.ssh/known_hosts ubuntu@ec2-18-130-182-202.eu-west-2.compute.amazonaws.com 'bash -s' < deploy.sh master: - step: name: Build and test script: - echo Building.... # Your build and test commands here - step: name: Deploy To EC2 script: - apt-get update - apt-get install -y openssh-client # SSH into EC2 instance and run deployment script # Give only owner permission - chmod 400 payraty_key.pem - mkdir -p ~/.ssh - chmod 700 ~/.ssh - ssh-keyscan -H ec2-18-170-7-138.eu-west-2.compute.amazonaws.com >> ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts # SSH into the server using the temporary key file # Adjust the deploy command to deploy to a different folder for the main branch - ssh -i payraty_key.pem ubuntu@ec2-18-170-7-138.eu-west-2.compute.amazonaws.com 'bash -s' < deploy_main.sh
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings