aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 7287970bcca47f0e67312438a05272949cc597cc (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
image:
  name: gcr.io/kaniko-project/executor:debug
  entrypoint: [""]

.buildc:
  script:
    - VER="$(cat src/${IMG_NAME}/VERSION)"
    - mkdir -p /kaniko/.docker
    - echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
    - |-
      /kaniko/executor --context "${CI_PROJECT_DIR}/src/${IMG_NAME}" \
                       --ignore-var-run=false \
                       --cache=false \
                       --dockerfile "${CI_PROJECT_DIR}/src/${IMG_NAME}/Dockerfile" \
                       --destination "${CI_REGISTRY_IMAGE}/${IMG_NAME}:${VER}" \
                       --destination "${CI_REGISTRY_IMAGE}/${IMG_NAME}:${VER}-${CI_PIPELINE_IID}" \
                       --destination "${CI_REGISTRY_IMAGE}/${IMG_NAME}:latest"
base:
  variables:
    IMG_NAME: "base"
  extends: .buildc
cgit:
  needs: [base]
  variables:
    IMG_NAME: "cgit"
  extends: .buildc
git-snapshot:
  needs: [base]
  variables:
    IMG_NAME: "git-snapshot"
  extends: .buildc
gitolite:
  needs: [base]
  variables:
    IMG_NAME: "gitolite"
  extends: .buildc
pelican:
  needs: [base]
  variables:
    IMG_NAME: "pelican"
  extends: .buildc
cluster:
  needs: [base]
  variables:
    IMG_NAME: "cluster"
  extends: .buildc
sally:
  needs: [base]
  variables:
    IMG_NAME: "sally"
  extends: .buildc
static-files:
  needs: [base]
  variables:
    IMG_NAME: "static-files"
  extends: .buildc
echo:                
  needs: [base]              
  variables:                 
    IMG_NAME: "go-echo"
  extends: .buildc