From 6ec6ad12b53aca97d0acd2487a66c6437ec86766 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Thu, 8 Oct 2020 02:53:27 +0000 Subject: [PATCH] feat: publish to gitlab pages - a workaround for gitlab limit - ref: #26 --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f1d31dd0..00cbbd0f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - deploy_stage + - pages_stage - failed_stage image: alpine:latest # Use the latest version of Alpine Linux docker image @@ -81,3 +82,20 @@ failed_job: when: on_failure - if: '$CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "web"' when: on_failure + +pages: + stage: pages_stage + + script: + - mkdir -p public/ + - cp urlhaus-filter-* public/ + + artifacts: + paths: + - public + + rules: + - if: '$CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "schedule"' + when: always + - if: '$CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "web"' + when: always