Skip to content

Commit

Permalink
Upgrade to Node v16, Python v3.10 and switch back to slim image (#67)
Browse files Browse the repository at this point in the history
* Use python-nodejs:python3.10-nodejs16-slim

* Update node and action versions
  • Loading branch information
DavideViolante authored May 31, 2022
1 parent 2789335 commit 8cee603
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nikolaik/python-nodejs:python3.9-nodejs14-alpine
FROM nikolaik/python-nodejs:python3.10-nodejs16-slim

LABEL version="1.0.0"
LABEL repository="https://github.com/serverless/github-action"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: serverless deploy
uses: serverless/github-action@v3
uses: serverless/github-action@v3.1
with:
args: deploy
env:
Expand All @@ -50,7 +50,7 @@ jobs:
Change your action in this way, according to [this issue](https://github.com/serverless/github-action/issues/28), thanks to @matthewpoer:
```yaml
- name: Install Plugin and Deploy
uses: serverless/github-action@v3
uses: serverless/github-action@v3.1
with:
args: -c "serverless plugin install --name <plugin-name> && serverless deploy"
entrypoint: /bin/sh
Expand All @@ -60,7 +60,7 @@ Change your action in this way, according to [this issue](https://github.com/ser
Change your action in this way, according to [this issue](https://github.com/serverless/github-action/issues/53#issuecomment-1059839383), thanks to @nikhuber:
```yaml
- name: Enter dir and deploy
uses: serverless/github-action@v3
uses: serverless/github-action@v3.1
with:
args: -c "cd ./<your-dir> && serverless deploy"
entrypoint: /bin/sh
Expand Down

0 comments on commit 8cee603

Please sign in to comment.