mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-02 03:38:03 +01:00
fix(ci/cd): corrige formato inválido de etiquetas Docker
Soluciona el error "invalid reference format" que ocurría cuando se
generaban tags Docker con formato inválido como ":-bcbb6d2".
Cambios en workflow:
- Elimina prefix={{branch}}- del tag type=sha que causaba el formato
inválido cuando branch estaba vacío
- Simplifica a type=sha,format=short para generar tags como sha-bcbb6d2
Cambios en Dockerfile:
- Añade declaraciones ARG con valores por defecto para BUILD_DATE,
VERSION y REVISION (dev, unknown)
- Añade labels OCI estándar para metadatos de imagen
- Garantiza que las variables siempre tengan valores válidos
Esto previene errores como:
ERROR: failed to build: invalid tag "ghcr.io/dawnsystem/intellidocs-ngx:-bcbb6d2"
This commit is contained in:
parent
9298f64546
commit
46ed60b86d
2 changed files with 14 additions and 1 deletions
2
.github/workflows/docker-intellidocs.yml
vendored
2
.github/workflows/docker-intellidocs.yml
vendored
|
|
@ -132,7 +132,7 @@ jobs:
|
|||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=sha,prefix={{branch}}-,format=short
|
||||
type=sha,format=short
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
- name: Build and push Docker image
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue