Skip to content

fix(deps): update ghcr.io/containerbase/base docker tag to v9.32.1 #3760

fix(deps): update ghcr.io/containerbase/base docker tag to v9.32.1

fix(deps): update ghcr.io/containerbase/base docker tag to v9.32.1 #3760

Workflow file for this run

name: build
on:
push:
env:
OWNER: ${{ github.repository_owner }}
FILE: buildpack
IMAGE: ghcr.io/${{ github.repository_owner }}/buildpack
NODE_VERSION: 20.11.0 # renovate: datasource=node depName=node
DRY_RUN: ${{ github.ref != 'refs/heads/main' }}
BUILDKIT_PROGRESS: plain
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: enable corepack
run: corepack enable
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm
- name: enable corepack
run: corepack enable
- name: Installing dependencies
run: pnpm install
- name: Lint
run: pnpm lint
windows:
needs: [lint]
runs-on: ${{ format('windows-{0}', matrix.os) }}
timeout-minutes: 60
permissions:
contents: read
packages: write
strategy:
matrix:
os: [2019, 2022]
env:
BASE: ${{ matrix.os }}
TAG: windows-${{ matrix.os }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# ignore not yet existing images
- name: Fetch the Docker image
run: |
docker pull ${{ env.IMAGE }}
docker pull ${{ env.IMAGE }}:${{ env.TAG }}
continue-on-error: true
- name: Build the Docker image
run: docker build -t ${{ env.IMAGE }}:${{ env.TAG }} --cache-from ${{ env.IMAGE }} --cache-from ${{ env.IMAGE }}:${{ env.TAG }} -f Dockerfile.${{ env.BASE }} .
working-directory: ./windows
- name: Test run
run: docker-compose --file docker-compose.test.yml run sut
working-directory: ./windows
env:
IMAGE: ${{ env.IMAGE }}:${{ env.TAG }}
- name: Log into registry
if: github.ref == 'refs/heads/main'
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: Publish the Docker image
if: github.ref == 'refs/heads/main'
run: docker push ${{ env.IMAGE }}
env:
IMAGE: ${{ env.IMAGE }}:${{ env.TAG }}
linux:
needs: [lint]
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
packages: write
env:
TAG: linux
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: docker-config
uses: containerbase/internal-tools@6bbc5c952921fd03b8bb242934e57dc8d3d2be1b # v3.0.51
with:
command: docker-config
- name: Build the Docker image
run: docker buildx bake test
- name: Test run
run: docker-compose --file docker-compose.test.yml run sut
working-directory: ./linux
env:
IMAGE: ${{ env.IMAGE }}:${{ env.TAG }}
- name: Log into registry
if: github.ref == 'refs/heads/main'
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: Publish the Docker image
if: github.ref == 'refs/heads/main'
run: docker buildx bake build --provenance=false
multi-arch:
needs: [linux, windows]
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: enable corepack
run: corepack enable
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm
- name: enable corepack
run: corepack enable
- name: Installing dependencies
run: pnpm install
- name: Log into registry
if: github.ref == 'refs/heads/main'
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: Build the Docker multiarch manifest
run: pnpm build --release latest
- name: Publish the Docker multiarch manifest
if: github.ref == 'refs/heads/main'
run: pnpm push --release latest
release:
needs: [multi-arch]
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: enable corepack
run: corepack enable
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm
- name: enable corepack
run: corepack enable
- name: Installing dependencies
run: pnpm install
- name: Log into registry
if: github.ref == 'refs/heads/main'
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: semantic-release
run: pnpm semantic-release --dry-run ${{env.DRY_RUN}} --ci ${{env.DRY_RUN != 'true'}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}