diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4229fe8042f39d8633d1d63a1b5f387fad7fc777..548fb38b3d62a123f2791e077f674d470d4b2940 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,20 @@ -# The Docker image that will be used to build your app +# Especificar la imagen Docker que se usará para el entorno de construcción image: node:lts -# Functions that should be executed before the build script is run + +# Definir etapas si necesitas más control (opcional) +stages: + - build + +# Tareas previas a la ejecución del script de construcción before_script: - npm ci + +# Definir el trabajo principal para construir la aplicación +build_app: + stage: build + script: + - echo "Construyendo la aplicación..." + - npm run build + artifacts: + paths: + - dist/ # Cambia a la carpeta donde se generen tus artefactos