Skip to content

build(deps): bump serde from 1.0.199 to 1.0.200 (#406) #708

build(deps): bump serde from 1.0.199 to 1.0.200 (#406)

build(deps): bump serde from 1.0.199 to 1.0.200 (#406) #708

Workflow file for this run

name: Container
on:
push:
branches:
- main
- develop
- release/*
- ci/*
tags:
- v*
env:
CI: 1
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
concurrency:
group: image-${{ github.ref }}
cancel-in-progress: true
jobs:
image:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Build and publish images
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mode:
- release
outputs:
version: ${{ steps.meta.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Configure sccache
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Install docker-buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
- name: Login to the GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup container metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=edge
type=raw,enable=${{ github.event_name != 'pull_request' && !contains(github.ref, 'refs/tags/') }},value=build-{{date 'YYYY.MM.DD'}}-{{sha}}
flavor: |
latest=auto
suffix=${{ matrix.mode == 'debug' && '-debug' || ''}}
bake-target: clipcat
- name: Build container image
uses: docker/bake-action@v4
with:
pull: true
push: true
set: |
clipcat.args.SCCACHE_GHA_ENABLED=on
clipcat.args.ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
clipcat.args.ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }}
files: |
./dev-support/containers/docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
targets: clipcat