Update .gitlab-ci.yml

This commit is contained in:
Carlos Galindo 2025-04-03 17:28:39 +00:00
parent 29a3dbad06
commit c75751b38e

View file

@ -1,19 +1,20 @@
default: # The Docker image that will be used to build your app
image: "python:latest" image: python:latest
create-pages:
create_pages: pages:
script: # The folder that contains the files to be exposed at the Page URL
- pip install django && apt update && apt install -y make node-less locales && sed -i '/es_ES.UTF-8/s/^# //g' /etc/locale.gen && locale-gen publish: www
- git clone https://gitlab.com/parroquia-san-leandro/cancionero-web ../cancionero-web rules:
- ln -s ../cancionero-25 ../cancionero-web/latex # This ensures that only pushes to the default branch will trigger
- mkdir ../cancionero-web/audios # a pages deploy
- make -C ../cancionero-web - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- mv ../cancionero-web/public www # Functions that should be executed before the build script is run
- echo La web está disponible en https://$CI_PROJECT_NAMESPACE_SLUG.gitlab.io/$CI_PROJECT_PATH/ before_script:
pages: true - pip install django && apt update && apt install node-less locales && sed
artifacts: -i '/es_ES.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
paths: - git clone https://gitlab.com/parroquia-san-leandro/cancionero-web
- www ../cancionero-web
rules: - make -C ../cancionero-web
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH script:
environment: production - make -C ../cancionero-web
- mv ../cancionero-web/public www