.gitlab-ci.yml 454 Bytes
Newer Older
njørd's avatar
njørd committed
1
image: jekyll/builder
Administrator's avatar
Administrator committed
2

opatut's avatar
opatut committed
3 4 5 6 7
stages:
  - test
  - build
  - deploy

Administrator's avatar
Administrator committed
8
test:
njørd's avatar
njørd committed
9
  extends:
Administrator's avatar
Administrator committed
10 11
  stage: test
  script:
njørd's avatar
njørd committed
12
    - jekyll build -d test
Administrator's avatar
Administrator committed
13 14 15 16 17 18 19
  artifacts:
    paths:
    - test
  except:
  - master

pages:
opatut's avatar
opatut committed
20
  stage: build
Administrator's avatar
Administrator committed
21 22 23 24 25 26 27
  script:
  - jekyll build -d public
  artifacts:
    paths:
    - public
  only:
  - master
opatut's avatar
opatut committed
28 29 30

deploy:
  stage: deploy
njørd's avatar
njørd committed
31 32
  before_script:
  - apk add curl
opatut's avatar
opatut committed
33
  script:
fuzzle's avatar
fuzzle committed
34
  - curl --silent --max-time 1200 'https://neu.cccfr.de/update'
opatut's avatar
opatut committed
35 36
  only:
  - master