Skip to content

build: bump version to 1.0.6 #35

build: bump version to 1.0.6

build: bump version to 1.0.6 #35

Workflow file for this run

name: Publish docker image
on:
push:
paths:
- src/**
- .dockerignore
- Dockerfile
- LICENSE
- pyproject.toml
- README.md
- uv.lock
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: actions/checkout@v6
- uses: sigstore/cosign-installer@v4.0.0
if: github.event_name != 'pull_request'
with:
cosign-release: 'v3.0.5'
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
# ghcr.io prefers index level annotations
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: index
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=pep440,pattern={{version}}
type=edge,branch=main
- uses: docker/build-push-action@v6
id: build-and-push
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
- run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
if: ${{ github.event_name != 'pull_request' }}
env:
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}