Skip to content

build(deps-dev): bump @commitlint/config-conventional from 17.6.1 to 17.6.6 #2610

build(deps-dev): bump @commitlint/config-conventional from 17.6.1 to 17.6.6

build(deps-dev): bump @commitlint/config-conventional from 17.6.1 to 17.6.6 #2610

Workflow file for this run

name: ci
on:
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
services:
registry:
image: registry:latest
ports:
- 5000:5000
steps:
- name: Checkout
uses: actions/[email protected]
- name: Repo metadata
id: repo
uses: actions/[email protected]
with:
script: |
const repo = await github.rest.repos.get(context.repo)
return repo.data
- name: Prepare
id: prep
run: |
echo ::set-output name=docker-image::localhost:5000/${{ github.event.repository.full_name }}
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
with:
version: latest
driver-opts: network=host
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Get platforms
uses: actions/[email protected]
id: platforms
env:
DOCKER_CLI_EXPERIMENTAL: enabled
with:
result-encoding: string
script: |
const script = require(`${process.env.GITHUB_WORKSPACE}/.github/getDockerPlatforms.js`)
return script("Dockerfile", "${{ steps.buildx.outputs.platforms }}");
- name: Platforms
run: echo ${{ steps.platforms.outputs.result }}
- name: Cache Docker layers
uses: actions/[email protected]
env:
cache-name: buildx
id: cache
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-docker-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-docker-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
${{ runner.os }}-docker-${{ env.cache-name }}-
${{ runner.os }}-docker-
- name: Cache hit
run: echo ${{ steps.cache.outputs.cache-hit }}
- name: Build and push
id: docker-build
uses: docker/[email protected]
with:
push: true
builder: ${{ steps.buildx.outputs.name }}
context: .
platforms: ${{ steps.platforms.outputs.result }}
tags: ${{ steps.prep.outputs.docker-image }}:${{ github.sha }}
labels: |
org.opencontainers.image.title=${{ fromJson(steps.repo.outputs.result).name }}
org.opencontainers.image.description=${{ fromJson(steps.repo.outputs.result).description }}
org.opencontainers.image.url=${{ fromJson(steps.repo.outputs.result).html_url }}
org.opencontainers.image.source=${{ fromJson(steps.repo.outputs.result).clone_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.licenses=${{ fromJson(steps.repo.outputs.result).license.spdx_id }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
- name: Inspect
run: |
docker buildx imagetools inspect ${{ steps.prep.outputs.docker-image }}:${{ github.sha }}
- name: Image digest
run: echo ${{ steps.docker-build.outputs.digest }}
- name: Dump context
if: always()
uses: crazy-max/[email protected]