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: |
|
||||
latest=auto
|
||||
ghcr-enable:
|
||||
description: Log into GHCR
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
gtcr-enable:
|
||||
description: Log into GHCR
|
||||
required: false
|
||||
default: true
|
||||
@@ -57,7 +62,7 @@ on:
|
||||
# this is cool because you can add multiple names to different registries
|
||||
# and docker-build-push step will push to all of them
|
||||
default: |
|
||||
ghcr.io/${{ github.repository }}
|
||||
${{ github.server_url }}/${{ github.repository }}
|
||||
platforms:
|
||||
description: Platforms to build for
|
||||
required: false
|
||||
@@ -153,6 +158,14 @@ jobs:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
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
|
||||
id: docker_meta
|
||||
|
||||
Reference in New Issue
Block a user