Add AWS CLI install step to deploy workflow
All checks were successful
Deploy / deploy (push) Successful in 10m52s
All checks were successful
Deploy / deploy (push) Successful in 10m52s
Runner image doesn't include AWS CLI by default.
This commit is contained in:
@@ -64,6 +64,14 @@ jobs:
|
|||||||
if: steps.changes.outputs.frontend == 'true'
|
if: steps.changes.outputs.frontend == 'true'
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Install AWS CLI
|
||||||
|
if: steps.changes.outputs.frontend == 'true' || steps.changes.outputs.api == 'true'
|
||||||
|
run: |
|
||||||
|
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o /tmp/awscliv2.zip
|
||||||
|
unzip -q /tmp/awscliv2.zip -d /tmp
|
||||||
|
/tmp/aws/install
|
||||||
|
aws --version
|
||||||
|
|
||||||
- name: Configure AWS credentials
|
- name: Configure AWS credentials
|
||||||
if: steps.changes.outputs.frontend == 'true' || steps.changes.outputs.api == 'true'
|
if: steps.changes.outputs.frontend == 'true' || steps.changes.outputs.api == 'true'
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user