feat: publish to gitlab pages

- a workaround for gitlab limit
- ref: #26
This commit is contained in:
MDLeom 2020-10-08 02:53:27 +00:00
parent 66c9c035e7
commit 6ec6ad12b5
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 18 additions and 0 deletions

View File

@ -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