default to gitea registry
This commit is contained in:
15
.github/workflows/reusable-docker-build.yaml
vendored
15
.github/workflows/reusable-docker-build.yaml
vendored
@@ -46,6 +46,11 @@ on:
|
|||||||
default: |
|
default: |
|
||||||
latest=auto
|
latest=auto
|
||||||
ghcr-enable:
|
ghcr-enable:
|
||||||
|
description: Log into GHCR
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
gtcr-enable:
|
||||||
description: Log into GHCR
|
description: Log into GHCR
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
@@ -57,7 +62,7 @@ on:
|
|||||||
# this is cool because you can add multiple names to different registries
|
# this is cool because you can add multiple names to different registries
|
||||||
# and docker-build-push step will push to all of them
|
# and docker-build-push step will push to all of them
|
||||||
default: |
|
default: |
|
||||||
ghcr.io/${{ github.repository }}
|
${{ github.server_url }}/${{ github.repository }}
|
||||||
platforms:
|
platforms:
|
||||||
description: Platforms to build for
|
description: Platforms to build for
|
||||||
required: false
|
required: false
|
||||||
@@ -154,6 +159,14 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Login to Gitea
|
||||||
|
if: inputs.gtcr-enable
|
||||||
|
uses: docker/login-action@v3.3.0
|
||||||
|
with:
|
||||||
|
registry: ${{ github.server_url }}
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@v5.5.1
|
uses: docker/metadata-action@v5.5.1
|
||||||
|
|||||||
Reference in New Issue
Block a user