Skip to content

Prep for v0.2.3 release #17

Prep for v0.2.3 release

Prep for v0.2.3 release #17

name: Benchmark Image
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "v*"
paths:
- "benchmark/**"
- "docker/benchmark/Dockerfile"
- "Gemfile"
- "cdc-parallel.gemspec"
- "lib/**"
- ".github/workflows/benchmark-image.yml"
permissions:
contents: read
packages: write
env:
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/cdc-parallel-benchmark
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=sha,prefix=sha-
- name: Build and publish benchmark image
uses: docker/build-push-action@v6
with:
context: .
file: docker/benchmark/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}