1 Answer
- Newest
- Most votes
- Most comments
0
Hi John! You might as well write a workflow. Here's what mine looks like:
- name: Generate deployment package
run: zip -r deploy.zip . -x '*.git*'
- name: Get Last Commit Hash
id: last_commit_hash
run: echo "hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v21
timeout-minutes: 5
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: MYAPP
environment_name: MYENV
version_label: app-${{ steps.last_commit_hash.outputs.hash }}
region: my-eb-region
deployment_package: deploy.zip
I use the commit hash for the label but you can use tags, or whatever you like.
You can check out the einaregilsson/beanstalk-deploy
action documentation if you need more info.
answered 9 months ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 25 days ago
thank you, there is already a work flow, but its not clear to me if its running or not. The repo was moved so that keys were lost. Is there a way that I can tell by looking at EB logs whether or not the EB github gadget had been installed on the old repo? If it weren't for this new gadget it would be clear but now i'm not certain whether or not the workflow is working or not.
When a deployment occurs on your environment, it's hard to miss. You'll see a bunch of events, and if the deployment is successful, you should see this: https://i.imgur.com/Du3EVpS.png If you're not seeing any new events, then nothing is active. As for whether the Github App is installed at all, there's no way to know if it's not being used, as this is something happening on Github's side.