Skip to content

chore(deps): bump node.js from 20.18.0 to 22.11.0 #4122

chore(deps): bump node.js from 20.18.0 to 22.11.0

chore(deps): bump node.js from 20.18.0 to 22.11.0 #4122

Workflow file for this run

name: test
on:
push:
branches: ["**"]
pull_request:
workflow_dispatch:
inputs: # null for another event
skip:
type: boolean
default: false
permissions: {}
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# tool versions
# renovate: datasource=github-releases depName=docker/buildx
BUILDX_VERSION: v0.18.0
# renovate: datasource=github-releases depName=moby/buildkit
BUILDKIT_VERSION: v0.17.1
jobs:
test:
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- run: |
echo 'FROM scratch' > Dockerfile
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
with:
version: ${{ env.BUILDX_VERSION }}
driver-opts: image=moby/buildkit:${{ env.BUILDKIT_VERSION }}
- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: test-meta
name: Extract metadata (tags, labels) for Docker
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}},suffix=-test
type=semver,pattern={{major}}.{{minor}},suffix=-test
type=semver,pattern={{major}},suffix=-test
type=edge,suffix=-test
type=ref,event=branch,suffix=-test
- id: build
name: Build and push Docker image
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
file: 'test.Dockerfile'
push: ${{ github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.test-meta.outputs.tags }}
labels: ${{ steps.test-meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- if: ${{ github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch }}
name: Display image digest
run: |
name=$(cut --delimiter=',' --fields=1 <<< "$NAME")
echo '```' >> $GITHUB_STEP_SUMMARY
echo "$name@$DIGEST" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
env:
NAME: ${{ fromJson(steps.build.outputs.metadata)['image.name'] }}
DIGEST: ${{ fromJson(steps.build.outputs.metadata)['containerimage.digest'] }}