Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 2

Cannot deploy Angular application to Elastic Beanstalk

I have an Angular application which needs to be deployed to Elastic Beanstalk using GitHub Actions. I'm following this guideline to deploy by application to ELB. Below is my main.yml:

 

 

name: CI

on:
  push:
    branches:
    - dry-run-actions

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [10.x]

    steps:
      - uses: actions/checkout@v1

      # I'm removing the intermediate steps to make this code look shorter and these steps are running correctly.
      # In these steps I'm "Caching node_module", "npm install" and "npm run build"

      - name: Cache node modules
        ...
      - name: Node ${{ matrix.node-version }}
        ...
      - name: Do NPM install
        ...
      - name: Building application
        ...
      - name: Generate deployment package
        run: zip -r deploy.zip ./dist/*

      - name: Beanstalk Deploy for Climber Mentee App
        uses: einaregilsson/beanstalk-deploy@v3
        with:
          aws_access_key: ${{secrets.AWS_ACCESS_KEY}}
          aws_secret_key: ${{secrets.AWS_SECRET_KEY}}
          aws_region: "ap-south-1"
          application_name: "app-name"
          environment_name: "aws-env-name"
          version_label: 1
          deployment_package: deploy.zip

      - name: Deployed the test app
        run: echo Yeaahhhhh

 

I have also opened a SO question here and issue on https://github.com/einaregilsson/beanstalk-deploy/issues/4 

 

1 Reply
Highlighted
GitHub Partner
Message 2 of 2

Re: Cannot deploy Angular application to Elastic Beanstalk

Could you please try to use command to deploy your Angular application? What’s the result?

According to the logs, it seems ignore the deployment_package argument. Do you want to deploy a new version or deploy an existing version?

If you are using public repo, it would be better if you could share it to us.