add workflow to create release container on tag push
This commit is contained in:
parent
24fd7ae0eb
commit
d6eea3965e
1 changed files with 38 additions and 0 deletions
38
.github/workflows/container.yml
vendored
Normal file
38
.github/workflows/container.yml
vendored
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue