Skip to content

Commit

Permalink
fix: correct AWS deployment steps
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra committed Mar 20, 2024
1 parent 2caa176 commit b5006a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- run: |
echo "Deploying branch ${{ env.GITHUB_REF }} to ${{ github.event.inputs.environment }}"
commit_hash=`git rev-parse HEAD`
aws deploy create-deployment --application-name ${{ secrets.CODE_DEPLOY_APPLICATION_NAME }} --deployment-group-name ${{ secrets.CODE_DEPLOY_GROUP_NAME }} --github-location repository=$GITHUB_REPOSITORY,commitId=$commit_hash --ignore-application-stop-failures
aws deploy create-deployment \
--application-name ${{ secrets.CODE_DEPLOY_APPLICATION_NAME }} \
--deployment-group-name ${{ secrets.CODE_DEPLOY_GROUP_NAME }} \
--s3-location bucket=${{ secrets.S3_BUCKET_NAME }},bundleType=zip,key=app.zip

0 comments on commit b5006a2

Please sign in to comment.