Debug #62
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
name: Serverless deployment | |
on: | |
push: | |
branches: | |
- serverless | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
container: | |
image: public.ecr.aws/lambda/python:3.10 | |
volumes: | |
- /node20:/node20:rw,rshared | |
- /node20:/__e/node20/bin:ro,rshared | |
steps: | |
- run: | | |
yum install git nodejs20 -y | |
ln -s /usr/bin/node-20 /node20/node | |
ls -lisa /node20/node | |
echo "-----" | |
ls -lisa /__e/node20/bin/ | |
echo "-----" | |
ls -lisa /__e/node20/bin/node | |
echo "-----" | |
/__e/node20/bin/node --version | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: serverless deploy | |
run: | | |
npm i -g [email protected] | |
npm ci | |
serverless deploy | |
env: | |
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }} |