Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
bchewy committed Oct 27, 2023
1 parent 7ec7e14 commit feebc1b
Show file tree
Hide file tree
Showing 4 changed files with 646 additions and 6 deletions.
Binary file added .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
# For other --acl options, see: https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl

- name: Deploy to S3
run: aws s3 sync vuejs-frontend/dist s3://workshop-student-12/ --delete --acl public-read
run: aws s3 sync vuejs-frontend/dist s3://workshop-student-50/ --delete --acl public-read

- name: Upload php backend to EC2 - Installing SSHPass (if does not exist on github actions runner)
run: sudo apt-get install -y sshpass

# use scp -v for verbose, to identify problems if not working, no need for sudo in scp
- name: Upload files to EC2 - PHP Backend!
run: sudo sshpass -p '${{secrets.EC2_PASS}}' scp -o StrictHostKeyChecking=no -r ./php-backend/* ubuntu@workshop12.bchwy.com:/var/www/html/
run: sudo sshpass -p '${{secrets.EC2_PASS}}' scp -o StrictHostKeyChecking=no -r ./php-backend/* ubuntu@workshop50.bchwy.com:/var/www/html/

Loading

0 comments on commit feebc1b

Please sign in to comment.