This commit is contained in:
@@ -29,12 +29,32 @@ jobs:
|
||||
# Formato v1.0.X (X = número de ejecución del pipeline)
|
||||
echo "VERSION=v1.0.${{ github.run_number }}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Validar secretos del Registry
|
||||
shell: bash
|
||||
env:
|
||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
test -n "${REGISTRY_USER}" || {
|
||||
echo "ERROR: REGISTRY_USER no está configurado."
|
||||
exit 1
|
||||
}
|
||||
|
||||
test -n "${REGISTRY_PASSWORD}" || {
|
||||
echo "ERROR: REGISTRY_PASSWORD no está configurado."
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "OK: secretos del Registry disponibles."
|
||||
|
||||
- name: Login en Gitea Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: gitea.cruzcloud.net
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
logout: true
|
||||
|
||||
# 2. ACTUALIZADO: Usamos la nueva variable para los tags de Docker
|
||||
|
||||
Reference in New Issue
Block a user