Skip to content

Commit

Permalink
Remove redundant poetry install for layer pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sansmoraxz committed May 25, 2023
1 parent be99d13 commit 3d2363d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/layerpipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ on:

jobs:
deployment:
name: Deployment layer
name: Dependencies Publish to lambda layer
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry

- uses: actions/setup-python@v4
with:
Expand All @@ -37,10 +36,11 @@ jobs:
role-session-name: gha-lambda-layer-${{ github.event.repository.name }}
aws-region: ${{ vars.AWS_REGION }}

- name: Download Zip dependencies
- name: Download & zip dependencies
run: |
pip install -t python .
zip -r lambda.zip python
- name: Upload zip to S3
run: aws s3 cp lambda.zip s3://${{ secrets.AWS_BUCKET }}/${{ github.event.repository.name }}-${{ github.sha }}.zip
- name: Deploy layer for AWS Lambda
Expand Down

0 comments on commit 3d2363d

Please sign in to comment.