simplified registry host name

This commit is contained in:
Krivopolenov, Artemiy
2026-01-18 20:19:37 +01:00
parent 3837466a7a
commit 06355772ed

View File

@@ -24,20 +24,13 @@ on:
env: env:
IMAGE_NAME: zola-pwsh-s3 IMAGE_NAME: zola-pwsh-s3
REGISTRY_URL: ${{ gitea.server_url }} REGISTRY_HOST: git.dwal.in
REGISTRY_HOST: ${{ replace(replace(gitea.server_url, 'https://', ''), 'http://', '') }}
jobs: jobs:
build-container: build-container:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Debug registry variables
run: |
echo "REGISTRY_HOST=${{ env.REGISTRY_HOST }}"
echo "REGISTRY_URL=${{ env.REGISTRY_URL }}"
echo "gitea.server_url=${{ gitea.server_url }}"
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -47,7 +40,7 @@ jobs:
- name: Login to Gitea Container Registry - name: Login to Gitea Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY_URL }} registry: ${{ env.REGISTRY_HOST }}
username: ${{ gitea.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.CONTAINER_TOKEN }} password: ${{ secrets.CONTAINER_TOKEN }}