fix: update Gitea registry login endpoint in build workflow
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 7s

This commit is contained in:
2026-03-27 17:07:30 -03:00
parent fa4bf360ff
commit 837214f41a

View File

@@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
REGISTRY: registry.gitea.lab REGISTRY: registry.gitea.lab
REGISTRY_LOGIN_ENDPOINT: http://registry.gitea.lab
IMAGE_NAME: sancho41/condado-newsletter IMAGE_NAME: sancho41/condado-newsletter
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -37,11 +38,11 @@ jobs:
fi fi
if [ -z "$REGISTRY_PASSWORD" ]; then if [ -z "$REGISTRY_PASSWORD" ]; then
echo "REGISTRY_PASSWORD secret is empty; cannot log in to ${REGISTRY}." echo "REGISTRY_PASSWORD secret is empty; cannot log in to ${REGISTRY_LOGIN_ENDPOINT}."
exit 1 exit 1
fi fi
echo "$REGISTRY_PASSWORD" | docker login ${REGISTRY} -u "$REGISTRY_USERNAME" --password-stdin echo "$REGISTRY_PASSWORD" | docker login ${REGISTRY_LOGIN_ENDPOINT} -u "$REGISTRY_USERNAME" --password-stdin
- name: Tag registry images - name: Tag registry images
run: | run: |