Created
January 3, 2020 23:58
-
-
Save sunilshenoy/d81d3eb7c7f4f9f86c0f4cf7a6e05abd to your computer and use it in GitHub Desktop.
My Github Actions YAML file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Elastic Beanstalk | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@master | |
- name: Generate deployment package | |
run: zip deploy.zip -r . | |
- name: Deploy to ElasticBeanstalk | |
uses: einaregilsson/beanstalk-deploy@v3 | |
with: | |
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }} | |
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }} | |
application_name: {{REPLACE WITH APPLICATION NAME}} | |
environment_name: {{REPLACE WITH Environment NAME}} | |
version_label: latest-${{github.sha}} | |
region: us-east-2 | |
deployment_package: deploy.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment