Last active
April 12, 2022 12:45
-
-
Save cp-sumi-k/4f4411e2f269704c8a29b3eacd37e502 to your computer and use it in GitHub Desktop.
https://blog.canopas.com/complete-guide-to-deploying-ssr-vite-apps-on-aws-with-automation-27676113d6ac - Deploy script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DeploySSRApp | |
on: | |
push: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "17" | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: < IAM-ROLE-ARN > | |
aws-region: < AWS-REGION > | |
- name: Build frontend and push on ECR | |
run: | | |
cd vue-frontend | |
sh ./deploy-ecr-image.sh < ECR-IMAGE-ARN > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment