Skip to content

ci(deps): update ncipollo/release-action action to v1.21.0 #2510

ci(deps): update ncipollo/release-action action to v1.21.0

ci(deps): update ncipollo/release-action action to v1.21.0 #2510

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
env:
DRY_RUN: ${{ github.ref_name != 'main' }}
OWNER: ${{ github.repository_owner }}
PLATFORMS: linux/amd64,linux/arm64
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: ⚙️ Setup
uses: containerbase/internal-tools/setup@3bc3ee22f141066297f6b805a229de93af4d0102 # v4.4.1
with:
save-cache: true
- run: pnpm prettier
build:
needs:
- lint
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
show-progress: false
- uses: sigstore/cosign-installer@ba7bc0a3fef59531c69a25acd34668d6d3fe6f22 # v4.1.0
- name: Docker registry login
if: env.DRY_RUN == 'false'
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ env.OWNER }} --password-stdin
- name: Publish to ghcr.io
uses: containerbase/internal-tools@3bc3ee22f141066297f6b805a229de93af4d0102 # v4.4.1
with:
command: docker-builder
image-prefix: ghcr.io/${{ env.OWNER }}
platforms: ${{ env.PLATFORMS }}
last-only: true
major-minor: false
dry-run: ${{ env.DRY_RUN }}
release:
needs:
- build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
show-progress: false
- name: Init
run: ./bin/init.sh
- uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
if: env.DRY_RUN == 'false'
with:
allowUpdates: true
body: See https://github.com/containerbase/base/releases/tag/${{ env.VERSION }} for more changes
commit: ${{ github.sha }}
name: ${{ env.VERSION }}
tag: v${{ env.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}