Skip to content

Switch default API_BASE_URL from staging to production #83

Switch default API_BASE_URL from staging to production

Switch default API_BASE_URL from staging to production #83

Workflow file for this run

name: Build and Publish Docker Images
on:
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
branches:
- main
paths:
- 'Dockerfile'
- 'src/**'
- 'pyproject.toml'
- 'uv.lock'
- '.github/workflows/docker-publish.yml'
release:
types: [published]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
permissions:
contents: read
packages: write
id-token: write
attestations: write
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and publish Docker image
uses: ./.github/actions/build-and-publish-docker
with:
registry: ${{ env.REGISTRY }}
image-name: ${{ env.IMAGE_NAME }}
push: ${{ github.event_name != 'pull_request' }}
github-token: ${{ secrets.GITHUB_TOKEN }}
tags-config: |
type=schedule
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=tag
type=ref,event=branch
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=pr
type=sha,value={{short_sha}}