.gitlab-ci.yml 1.15 KB
Newer Older
Nicolas Lenz's avatar
Nicolas Lenz committed
1
2
3
4
stages:
  - prepare
  - build

Nicolas Lenz's avatar
Nicolas Lenz committed
5
fonts:
Nicolas Lenz's avatar
Nicolas Lenz committed
6
  stage: prepare
Nicolas Lenz's avatar
Nicolas Lenz committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  image: alpine
  script:
    - apk add --no-cache tar unzip wget
    - wget -O iosevka-funke.tar.gz https://config.pages.eisfunke.com/iosevka/iosevka-funke.tar.gz
    - wget -O zilla-slab.zip https://github.com/mozilla/zilla-slab/releases/download/v1.002/Zilla-Slab-Fonts-v1.002.zip
    - wget -O raleway.tar.xz https://github.com/theleagueof/raleway/releases/download/4.101/Raleway-4.101.tar.xz
    - tar -xf iosevka-funke.tar.gz
    - tar -xf raleway.tar.xz
    - unzip zilla-slab.zip
    - mkdir fonts
    - mv iosevka-funke/ttf/*.ttf fonts
    - mv zilla-slab/otf/*.otf fonts
    - mv Raleway-4.101/static/OTF/*.otf fonts
  artifacts:
    paths:
      - fonts

Nicolas Lenz's avatar
Nicolas Lenz committed
24
25
26
27
28
29
30
build:
  stage: build
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  script:
    - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
Nicolas Lenz's avatar
Nicolas Lenz committed
31
    - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile
Nicolas Lenz's avatar
Nicolas Lenz committed
32
      --destination $CI_REGISTRY_IMAGE:latest --destination $CI_REGISTRY_IMAGE:$(date -u +%Y-%m-%d_%H-%M-%S )