feat: add dynamic registry optional

This commit is contained in:
Thomas Sauter 2025-10-23 11:16:19 +02:00
parent 35e11b7a5c
commit d948827a0e
Signed by: thomas.sauter
GPG key ID: 015161F81E6A3C65
2 changed files with 10 additions and 2 deletions

View file

@ -8,6 +8,10 @@ on:
PROJECT_ID:
required: true
type: string
DOCKER_REGISTRY:
required: false
type: string
default: git.kvant.cloud
jobs:
build_and_push:
@ -45,7 +49,7 @@ jobs:
- name: Login into gitea registry
uses: docker/login-action@v3
with:
registry: git.kvant.cloud
registry: ${{ inputs.DOCKER_REGISTRY }}
username: ${{ inputs.PACKAGE_WRITER_USERNAME }}
password: ${{ secrets.PACKAGE_WRITER_TOKEN }}

View file

@ -5,6 +5,10 @@ on:
PACKAGE_WRITER_USERNAME:
required: true
type: string
DOCKER_REGISTRY:
required: false
type: string
default: git.kvant.cloud
jobs:
build_and_push:
runs-on: ubuntu-latest
@ -49,7 +53,7 @@ jobs:
- name: Login into gitea registry
uses: docker/login-action@v3
with:
registry: git.kvant.cloud
registry: ${{ inputs.DOCKER_REGISTRY }}
username: ${{ inputs.PACKAGE_WRITER_USERNAME }}
password: ${{ secrets.PACKAGE_WRITER_TOKEN }}