From f0839397c8810bcaa7562a72bb00eb435ff69ad4 Mon Sep 17 00:00:00 2001 From: Qing Ye <2336852+yq314@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:42:45 +0800 Subject: [PATCH] add v22 --- .github/workflows/v22.yml | 28 ++++++++++++++++++++++++++++ Dockerfile | 2 +- README.md | 10 +++++----- 3 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/v22.yml diff --git a/.github/workflows/v22.yml b/.github/workflows/v22.yml new file mode 100644 index 0000000..e701a49 --- /dev/null +++ b/.github/workflows/v22.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index b629f87..aa38f11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/* diff --git a/README.md b/README.md index c576271..d6ebedf 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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 @@ -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