forked from KiCad/kicad-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
32 lines (29 loc) · 896 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
variables:
BASE_TAG: ${CI_REGISTRY}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/${CI_COMMIT_REF_SLUG}
stages:
- test
- build
build_site_docker:
image: docker:19.03.12
services:
- docker:19.03.12-dind
stage: build
before_script:
- docker info
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" "$CI_REGISTRY"
script:
- docker build -t "$CI_REGISTRY_IMAGE:latest" .
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
- master
test_build:
stage: test
image: ruby:2.7.1-buster
before_script:
- gem install asciidoctor -v 2.0.10
- gem install html-proofer -v 3.13.0
- wget https://github.com/gohugoio/hugo/releases/download/v0.77.0/hugo_0.77.0_Linux-64bit.tar.gz
- tar -xzvf hugo_0.77.0_Linux-64bit.tar.gz
script:
- ./hugo
- htmlproofer ./public --external_only --only_4xx --url-ignore "/www.digikey.com/" --url-ignore "/twitter.com/"