feat: simplify registry references in build and docker-compose files
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 15s

This commit is contained in:
2026-03-28 15:59:47 -03:00
parent 2c29a4bce7
commit 968fd07385
2 changed files with 5 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ jobs:
name: Build And Publish Production Image
runs-on: ubuntu-latest
env:
REGISTRY: gitea.lab:80
REGISTRY: gitea.lab
IMAGE_NAME: sancho41/condado-newsletter
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
@@ -55,11 +55,11 @@ jobs:
- name: Build all-in-one image
run: |
docker build -t "${REGISTRY}/${IMAGE_NAME}:latest" -f Dockerfile.allinone .
docker tag "${REGISTRY}/${IMAGE_NAME}:latest" "${REGISTRY}/${IMAGE_NAME}:${{ gitea.sha }}"
docker build -t ${IMAGE_NAME}:latest" -f Dockerfile.allinone .
docker tag ${IMAGE_NAME}:latest" ${IMAGE_NAME}:${{ gitea.sha }}"
- name: Build result debug
run: |
set -eu
echo "Listing produced image tags"
docker image ls "${REGISTRY}/${IMAGE_NAME}" --format 'table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.CreatedSince}}' || true
docker image ls ${IMAGE_NAME}" --format 'table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.CreatedSince}}' || true