-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
61 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
cau-likelion-next-dev: | ||
component: '@sls-next/serverless-component' | ||
inputs: | ||
deploy: true | ||
bucketName: 'cau-likelion-dev' | ||
bucketRegion: 'ap-northeast-2' | ||
nextConfigDir: '../' | ||
name: | ||
defaultLambda: 'cau-likelion-dev-lambda' | ||
imageLambda: 'cau-likelion-dev-image-lambda' | ||
cloudfront: | ||
comment: 'next dev deploy' | ||
distributionId: 'E22IC449ORKD33' | ||
# cau-likelion-next-dev: | ||
# component: '@sls-next/serverless-component' | ||
# inputs: | ||
# deploy: true | ||
# bucketName: 'cau-likelion-dev' | ||
# bucketRegion: 'ap-northeast-2' | ||
# nextConfigDir: '../' | ||
# name: | ||
# defaultLambda: 'cau-likelion-dev-lambda' | ||
# imageLambda: 'cau-likelion-dev-image-lambda' | ||
# cloudfront: | ||
# comment: 'next dev deploy' | ||
# distributionId: 'E22IC449ORKD33' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
name: NEXT Deploy prod | ||
on: | ||
push: | ||
branches: main | ||
env: | ||
NEXT_PUBLIC_GOOGLE_CLIENT_ID: '${{secrets.NEXT_PUBLIC_GOOGLE_CLIENT_ID}}' | ||
NEXT_PUBLIC_GOOGLE_REDIRECT_URI: '${{secrets.NEXT_PUBLIC_GOOGLE_REDIRECT_URI}}' | ||
NEXT_PUBLIC_GOOGLE_SCOPE: '${{secrets.NEXT_PUBLIC_GOOGLE_SCOPE}}' | ||
NEXT_PUBLIC_GOOGLE_ANALYTICS: '${{secrets.NEXT_PUBLIC_GOOGLE_ANALYTICS}}' | ||
NEXT_PUBLIC_API_KEY: '${{secrets.NEXT_PUBLIC_API_KEY}}' | ||
NEXT_PUBLIC_NOTION_KEY: '${{secrets.NEXT_PUBLIC_NOTION_KEY}}' | ||
NEXT_PUBLIC_NOTION_DATABASE_ID: '${{secrets.NEXT_PUBLIC_NOTION_DATABASE_ID}}' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code. | ||
uses: actions/checkout@main | ||
# name: NEXT Deploy prod | ||
# on: | ||
# push: | ||
# branches: main | ||
# env: | ||
# NEXT_PUBLIC_GOOGLE_CLIENT_ID: '${{secrets.NEXT_PUBLIC_GOOGLE_CLIENT_ID}}' | ||
# NEXT_PUBLIC_GOOGLE_REDIRECT_URI: '${{secrets.NEXT_PUBLIC_GOOGLE_REDIRECT_URI}}' | ||
# NEXT_PUBLIC_GOOGLE_SCOPE: '${{secrets.NEXT_PUBLIC_GOOGLE_SCOPE}}' | ||
# NEXT_PUBLIC_GOOGLE_ANALYTICS: '${{secrets.NEXT_PUBLIC_GOOGLE_ANALYTICS}}' | ||
# NEXT_PUBLIC_API_KEY: '${{secrets.NEXT_PUBLIC_API_KEY}}' | ||
# NEXT_PUBLIC_NOTION_KEY: '${{secrets.NEXT_PUBLIC_NOTION_KEY}}' | ||
# NEXT_PUBLIC_NOTION_DATABASE_ID: '${{secrets.NEXT_PUBLIC_NOTION_DATABASE_ID}}' | ||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout source code. | ||
# uses: actions/checkout@main | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm install | ||
# - name: Install Dependencies | ||
# run: | | ||
# npm install | ||
|
||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ap-northeast-2 | ||
# - name: Configure AWS Credentials | ||
# uses: aws-actions/configure-aws-credentials@v1 | ||
# with: | ||
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
# aws-region: ap-northeast-2 | ||
|
||
- name: Deploy Next.js app | ||
run: | | ||
npm run deploy | ||
# - name: Deploy Next.js app | ||
# run: | | ||
# npm run deploy |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
cau-likelion-next: | ||
component: '@sls-next/serverless-component' | ||
inputs: | ||
runtime: | ||
defaultLambda: 'nodejs20.x' | ||
imageLambda: 'nodejs20.x' | ||
apiLambda: 'nodejs20.x' | ||
deploy: true | ||
bucketName: 'cau-like-lion2' | ||
bucketRegion: 'ap-northeast-2' | ||
nextConfigDir: '../' | ||
name: | ||
defaultLambda: 'cau-likelion-default-lambda2' | ||
imageLambda: 'cau-likelion-image-lambda2' | ||
timeout: 30 | ||
memory: 1024 | ||
cloudfront: | ||
comment: 'next deploy' | ||
# cau-likelion-next: | ||
# component: '@sls-next/serverless-component' | ||
# inputs: | ||
# runtime: | ||
# defaultLambda: 'nodejs20.x' | ||
# imageLambda: 'nodejs20.x' | ||
# apiLambda: 'nodejs20.x' | ||
# deploy: true | ||
# bucketName: 'cau-like-lion2' | ||
# bucketRegion: 'ap-northeast-2' | ||
# nextConfigDir: '../' | ||
# name: | ||
# defaultLambda: 'cau-likelion-default-lambda2' | ||
# imageLambda: 'cau-likelion-image-lambda2' | ||
# timeout: 30 | ||
# memory: 1024 | ||
# cloudfront: | ||
# comment: 'next deploy' |