File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 EB_APP_NAME : routebox
1010 EB_ENV_NAME : Routebox-dev-env
1111 JAR_FILE : routebox-0.0.1.jar
12- VERSION_LABEL : ${{ github.run_number }}-${{ github.sha }}
12+ VERSION_LABEL : v- ${{ github.run_number }}-${{ github.sha }}
1313
1414permissions :
1515 contents : read
8383 eb init ${{ env.EB_APP_NAME }} --platform "Corretto 17 running on 64bit Amazon Linux 2023" --region ${{ env.AWS_REGION }}
8484 eb use ${{ env.EB_ENV_NAME }}
8585
86+ - name : Create Application Version
87+ run : |
88+ aws elasticbeanstalk create-application-version \
89+ --application-name ${{ env.EB_APP_NAME }} \
90+ --version-label ${{ env.VERSION_LABEL }} \
91+ --source-bundle S3Bucket="${{ env.EB_APP_NAME }}",S3Key="deploy.zip" \
92+ --process
93+ aws s3 cp deploy.zip s3://${{ env.EB_APP_NAME }}/deploy.zip
94+
8695 - name : Deploy to Elastic Beanstalk
87- run : eb deploy --staged --timeout 30 --version=${{ env.VERSION_LABEL }} --source=deploy.zip
96+ run : eb deploy ${{ env.EB_ENV_NAME }} --version=${{ env.VERSION_LABEL }} --timeout 30
You can’t perform that action at this time.
0 commit comments