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