diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72e6036651bd62aba5c803457aa434708b3a1fdf..1c927ea61645e48d34e40b872a742915a5ce05cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,23 @@ variables: GIT_SUBMODULE_STRATEGY: recursive -build docker image: +stages: + - test + - build + - deploy + +zola check: + stage: test + image: alpine:latest + before_script: + - apk add --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ zola + - apk add yarn + - yarn install + script: + - zola check + +docker build: + stage: build interruptible: true image: name: gcr.io/kaniko-project/executor:debug @@ -14,16 +30,3 @@ build docker image: --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME --cache=true --cleanup - -build pages: - image: alpine:latest - before_script: - - apk add --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ zola - - apk add yarn - - yarn install - script: - - zola build - - cp _redirects public/ - artifacts: - paths: - - public/