Skip to content

Commit

Permalink
Merge pull request #8 from yq314/v22
Browse files Browse the repository at this point in the history
add support for v22
  • Loading branch information
Sleavely authored Nov 11, 2024
2 parents bf7bf58 + f083939 commit 5faac0e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/v22.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: sleavely/node-awscli:22.x

on:
push:
branches:
- 'v22'

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
pull: true
push: true
tags: ${{ github.workflow }},sleavely/node-awscli:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20
FROM node:22

# zip
RUN apt-get update && apt-get install -y zip && rm -rf /var/lib/apt/lists/*
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ Lambda-compatible NodeJS images with AWS CLI installed.

## Automatic Updates

Whenever a new NodeJS version is released, an instance of [`commit-on-release`](https://github.com/Sleavely/commit-on-release) creates an empty commit in the corresponding branch (`v16` and `v18`, `v20`) so that a new image is published to Docker Hub by a Github Action workflow.
Whenever a new NodeJS version is released, an instance of [`commit-on-release`](https://github.com/Sleavely/commit-on-release) creates an empty commit in the corresponding branch (`v16`, `v18`, `v20` and `v22`) so that a new image is published to Docker Hub by a Github Action workflow.

## Usage in CI/CD environments

Instead of using e.g. `node:20` and installing `awscli`, `jq`, and `zip` every time the pipeline runs, just switch out the name of the image to `sleavely/node-awscli:20.x` or [another appropriate version tag](https://hub.docker.com/r/sleavely/node-awscli/tags).
Instead of using e.g. `node:22` and installing `awscli`, `jq`, and `zip` every time the pipeline runs, just switch out the name of the image to `sleavely/node-awscli:22.x` or [another appropriate version tag](https://hub.docker.com/r/sleavely/node-awscli/tags).

### Bitbucket Pipelines

In `bitbucket-pipelines.yml`:

```yaml
image: sleavely/node-awscli:20.x
image: sleavely/node-awscli:22.x

pipelines:
default:
Expand All @@ -38,7 +38,7 @@ version: 2
jobs:
deploy:
docker:
- image: sleavely/node-awscli:20.x
- image: sleavely/node-awscli:22.x
steps:
- checkout
- run: npm ci
Expand All @@ -60,7 +60,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
container:
image: sleavely/node-awscli:20.x
image: sleavely/node-awscli:22.x
steps:
- uses: actions/checkout@v3
- run: npm ci
Expand Down

0 comments on commit 5faac0e

Please sign in to comment.