From 7b5982375cf76369442d2650e0f65dd6a397e651 Mon Sep 17 00:00:00 2001 From: Aleksandr Meshchriakov Date: Mon, 2 Feb 2026 13:54:08 +0100 Subject: [PATCH] fix(ci): use hardcoded 10.10.0.10:3000 for container registry --- .gitea/workflows/ci-cd.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index ed0f02a..b94e5bb 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -129,15 +129,15 @@ jobs: BRANCH_TAG=$(echo ${GITHUB_REF_NAME} | sed 's/\//-/g') SHA_SHORT=$(echo ${GITHUB_SHA} | cut -c1-7) - REGISTRY_URL=$(echo ${GITHUB_SERVER_URL} | sed 's|.*://||') - REGISTRY="${REGISTRY_URL}/${{ github.repository_owner }}" + # Gitea container registry is on HTTP at 10.10.0.10:3000 + REGISTRY="10.10.0.10:3000/${{ github.repository_owner }}" # Build web image locally docker build -f ./docker/Dockerfile.web -t mostovik-web:local . docker save mostovik-web:local -o /tmp/web.tar # Push with crane (supports insecure HTTP) - ./crane auth login ${REGISTRY_URL} -u ${{ gitea.actor }} -p ${{ gitea.token }} + ./crane auth login 10.10.0.10:3000 -u ${{ gitea.actor }} -p ${{ gitea.token }} ./crane push --insecure /tmp/web.tar ${REGISTRY}/mostovik-web:${BRANCH_TAG} ./crane push --insecure /tmp/web.tar ${REGISTRY}/mostovik-web:${BRANCH_TAG}-${SHA_SHORT} @@ -158,5 +158,4 @@ jobs: - name: Image summary run: | - REGISTRY_URL=$(echo ${GITHUB_SERVER_URL} | sed 's|.*://||') - echo "Images pushed to ${REGISTRY_URL}/${{ github.repository_owner }}/" + echo "Images pushed to 10.10.0.10:3000/${{ github.repository_owner }}/"