feat: add dynamic registry optional
This commit is contained in:
parent
35e11b7a5c
commit
d948827a0e
2 changed files with 10 additions and 2 deletions
6
.github/workflows/build-monorepo.yaml
vendored
6
.github/workflows/build-monorepo.yaml
vendored
|
|
@ -8,6 +8,10 @@ on:
|
||||||
PROJECT_ID:
|
PROJECT_ID:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
DOCKER_REGISTRY:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: git.kvant.cloud
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_push:
|
build_and_push:
|
||||||
|
|
@ -45,7 +49,7 @@ jobs:
|
||||||
- name: Login into gitea registry
|
- name: Login into gitea registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.kvant.cloud
|
registry: ${{ inputs.DOCKER_REGISTRY }}
|
||||||
username: ${{ inputs.PACKAGE_WRITER_USERNAME }}
|
username: ${{ inputs.PACKAGE_WRITER_USERNAME }}
|
||||||
password: ${{ secrets.PACKAGE_WRITER_TOKEN }}
|
password: ${{ secrets.PACKAGE_WRITER_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
6
.github/workflows/build.yaml
vendored
6
.github/workflows/build.yaml
vendored
|
|
@ -5,6 +5,10 @@ on:
|
||||||
PACKAGE_WRITER_USERNAME:
|
PACKAGE_WRITER_USERNAME:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
DOCKER_REGISTRY:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: git.kvant.cloud
|
||||||
jobs:
|
jobs:
|
||||||
build_and_push:
|
build_and_push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -49,7 +53,7 @@ jobs:
|
||||||
- name: Login into gitea registry
|
- name: Login into gitea registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.kvant.cloud
|
registry: ${{ inputs.DOCKER_REGISTRY }}
|
||||||
username: ${{ inputs.PACKAGE_WRITER_USERNAME }}
|
username: ${{ inputs.PACKAGE_WRITER_USERNAME }}
|
||||||
password: ${{ secrets.PACKAGE_WRITER_TOKEN }}
|
password: ${{ secrets.PACKAGE_WRITER_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue