fmt
This commit is contained in:
parent
2f149503bb
commit
6ea544a0f6
10 changed files with 144 additions and 60 deletions
|
|
@ -22,13 +22,22 @@ jobs:
|
|||
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
with:
|
||||
driver-opts: |
|
||||
network=host
|
||||
|
||||
- name: Resolve registry vars
|
||||
id: registry
|
||||
env:
|
||||
CONTAINER_REGISTRY_HOST: ${{ vars.CONTAINER_REGISTRY_HOST }}
|
||||
run: |
|
||||
host="${{ gitea.server_url }}"
|
||||
host="${CONTAINER_REGISTRY_HOST:-${{ gitea.server_url }}}"
|
||||
host="${host#https://}"
|
||||
host="${host#http://}"
|
||||
host="${host%/}"
|
||||
if [ "$host" = "forgejo:3000" ]; then
|
||||
host="127.0.0.1:13000"
|
||||
fi
|
||||
repo=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||
{
|
||||
echo "host=${host}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue