drm-pt.info/.gitlab-ci.yml

28 lines
616 B
YAML

image: registry.gitlab.com/pages/hugo/hugo_extended:latest
# Set this if you intend to use Git submodules
variables:
GIT_SUBMODULE_STRATEGY: recursive
HUGO_ENV: production
default:
before_script:
- export PATH="/root/.cargo/bin:$PATH"
- apk add --update --no-cache git go make yq cargo pkgconfig openssl openssl-dev bash ack
- cargo install stork-search --locked --all-features
test:
script:
- make
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages:
script:
- make
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH