default to gitea registry

This commit is contained in:
2024-08-18 13:59:36 +02:00
parent ea9e610534
commit 7d0eb85a10

View File

@@ -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