Skip to content

Commit

Permalink
fix: include bootstrap file
Browse files Browse the repository at this point in the history
  • Loading branch information
saiaunghlyanhtet committed Apr 17, 2024
1 parent 1f7f408 commit e5827df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ jobs:
go-version: '1.18'

- name: Build Go binary
run: go build -o app ./cmd/main.go
run: go build -o bootstrap ./cmd/main.go

- name: Ensure required Lambda dependencies
run: go mod vendor

- name: Zip binary with dependencies
run: zip -r app.zip app vendor
run: zip -r lambda.zip bootstrap vendor

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: app
path: ./app.zip
name: lambda
path: ./lambda.zip

deploy:
name: Deploy to AWS Lambda
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: app
name: lambda
path: .

- name: Install AWS CLI
Expand All @@ -55,7 +55,7 @@ jobs:
run: |
aws lambda update-function-code \
--function-name blog-api-lambda \
--zip-file fileb://app.zip \
--zip-file fileb://lambda.zip \
--region ap-northeast-1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit e5827df

Please sign in to comment.