diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ac0bf3c92caf825df605e1f770096da79747c06d..129c44f697e10535a17d13116d6967f5fec47259 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,7 @@ +include: + - project: 'funkwhale/gitlab-ci-templates' + file: '/static_pages/jobs.yaml' + stages: - build - test @@ -12,7 +16,7 @@ build: stage: build script: yarn build -pages: +docs: stage: build script: yarn docs:build artifacts: @@ -27,3 +31,13 @@ test: coverage_report: coverage_format: cobertura path: coverage/cobertura-coverage.xml + +deploy: + extends: .ssh_access + dependencies: + - docs + script: + - rsync -r -e "ssh -p 2281" $CI_PROJECT_DIR/public/ ui@ui.funkwhale.audio:/htdocs/$ + # TODO uncomment before merge + #only: + # - main@funkwhale/vui