add workflow to create release container on tag push

This commit is contained in:
judge 2025-10-29 22:43:51 +01:00
parent 24fd7ae0eb
commit d6eea3965e
No known key found for this signature in database
GPG key ID: 6512C30DD8E017B5

38
.github/workflows/container.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: Publish Container
on:
push:
tags:
- "*"
env:
REGISTRY: ghcr.io
DOCKERFILE: ./distribution/docker/Dockerfile
RELEASE_VERSION: ${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ${{ env.DOCKERFILE }}
push: true
tags: ghcr.io/ju6ge/paperless-field-extractor:latest-vulkan, ghcr.io/ju6ge/paperless-field-extractor:${{ env.RELEASE_VERSION }}-vulkan
build-args: |
INFERENCE_BACKEND=vulkan