Skip to content

Commit

Permalink
Rectify workflow for Nodejs22 layer release (#298)
Browse files Browse the repository at this point in the history
* rectify nodejs22 workflow
  • Loading branch information
chaudharysaket authored Nov 29, 2024
1 parent 95dbbdf commit e2abe95
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -61,7 +61,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v4
Expand Down
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,25 @@ publish-nodejs20x-local: build-nodejs20x
-v "${HOME}/.aws:/home/newrelic-lambda-layers/.aws" \
newrelic-lambda-layers-nodejs20x

build-nodejs22x:
docker build \
--no-cache \
-t newrelic-lambda-layers-nodejs22x \
-f ./dockerfiles/Dockerfile.nodejs22x \
.

publish-nodejs22x-ci: build-nodejs22x
docker run \
-e AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY \
newrelic-lambda-layers-nodejs22x

publish-nodejs22x-local: build-nodejs22x
docker run \
-e AWS_PROFILE \
-v "${HOME}/.aws:/home/newrelic-lambda-layers/.aws" \
newrelic-lambda-layers-nodejs22x

build-ruby32:
docker build \
--no-cache \
Expand Down
2 changes: 2 additions & 0 deletions nodejs/publish-layers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ source ../libBuild.sh

NJS18X_DIST_ARM64=$DIST_DIR/nodejs18x.arm64.zip
NJS20X_DIST_ARM64=$DIST_DIR/nodejs20x.arm64.zip
NJS22X_DIST_ARM64=$DIST_DIR/nodejs22x.arm64.zip

NJS18X_DIST_X86_64=$DIST_DIR/nodejs18x.x86_64.zip
NJS20X_DIST_X86_64=$DIST_DIR/nodejs20x.x86_64.zip
NJS22X_DIST_X86_64=$DIST_DIR/nodejs22x.x86_64.zip

function usage {
echo "./publish-layers.sh [nodejs18x|nodejs20x]"
Expand Down

0 comments on commit e2abe95

Please sign in to comment.