Skip to content

ci(deps): update actions/checkout action to v4.1.0 #2179

ci(deps): update actions/checkout action to v4.1.0

ci(deps): update actions/checkout action to v4.1.0 #2179

Workflow file for this run

name: build
on:
push:
branches:
- main
- 'renovate/**'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
env:
DRY_RUN: ${{ github.ref != 'refs/heads/main' }}
OWNER: ${{ github.repository_owner }}
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2
- name: Docker registry login
if: env.DRY_RUN == 'false'
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ env.OWNER }} --password-stdin
- name: Publish to docker.io
uses: containerbase/internal-tools@68271ad7fc19248e8d7f26c9c82c57e984d886ea # v1.21.26
with:
command: docker-builder
platforms: linux/amd64,linux/arm64
image-prefix: ${{ env.OWNER }}
dry-run: ${{ env.DRY_RUN }}
- name: Publish to ghcr.io
uses: containerbase/internal-tools@68271ad7fc19248e8d7f26c9c82c57e984d886ea # v1.21.26
with:
command: docker-builder
platforms: linux/amd64,linux/arm64
image-prefix: ghcr.io/${{ env.OWNER }}
major-minor: false
dry-run: ${{ env.DRY_RUN }}
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Init
run: ./bin/init.sh
- uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0
if: env.DRY_RUN == 'false'
with:
allowUpdates: true
body: See https://github.com/nodejs/node/releases/tag/v${{ env.VERSION }} for more changes
commit: ${{ github.sha }}
name: ${{ env.VERSION }}
tag: v${{ env.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}