einaregilsson / beanstalk-deploy

GitHub action (and command line script) to deploy apps to Elastic Beanstalk
MIT License
624 stars 136 forks source link

[feature-request] Support Wildcards/Multiple Elastic Beanstalk Environment Uploads #79

Open pinsondg opened 2 years ago

pinsondg commented 2 years ago

It would be nice to be able to specify multiple application environments deploy to. This could either be done with a wildcard or a list of environment names, or both.

Examples:

Existing Application Environments: [Some-Environment-1, Some-Environment-2, Some-Environment-3, Another-Environment-1]

      uses: einaregilsson/beanstalk-deploy@v20
      with:
        aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
        aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        application_name: MyApplicationName
        environment_names: Some-Environment-*
        version_label: 12345
        region: us-west-2
        deployment_package: deploy.zip

Will deploy to Some-Environment-1, Some-Environment-2, Some-Environment-3

      uses: einaregilsson/beanstalk-deploy@v20
      with:
        aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
        aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        application_name: MyApplicationName
        environment_names: 
            - Some-Environment-1
            - Some-Environment-3
            - Another-Environment-1
        version_label: 12345
        region: us-west-2
        deployment_package: deploy.zip

Will deploy to Some-Environment-1, Some-Environment-3, Another-Environment-1

DanielChrome commented 2 years ago

I'm looking for a way to multiple environment deploy. Any suggest?