ci(deps): update containerbase/internal-tools action to v3.5.12 (#479) #1033
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
HUSKY: 0 | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- run: corepack enable | |
- run: pnpm install | |
- run: pnpm prettier | |
build: | |
needs: | |
- lint | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
packages: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.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@b045538239fb42044408e9a3e0551a4b2755edf0 # v3.5.12 | |
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Init | |
run: ./bin/init.sh | |
- uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.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 }} |