blob: edca634cee27a628980f518a612f3b067deedd88 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
stages:
- test
- build_container
build-meson:
image: fedora:32
script:
- dnf group install -y 'Development Tools'
- dnf install -y hdf5-devel gsl-devel flex bison gcc-c++
- dnf install -y gtk3-devel cairo-devel pango-devel gdk-pixbuf2-devel fftw-devel libpng-devel diffutils
- dnf install -y meson
- meson build && ninja -C build
- ninja -C build test
build-meson-nohdf5:
image: fedora:37
script:
- dnf group install -y 'Development Tools'
- dnf install -y gsl-devel flex bison gcc-c++
- dnf install -y gtk3-devel cairo-devel pango-devel gdk-pixbuf2-devel fftw-devel libpng-devel diffutils
- dnf install -y meson
- meson build -Dhdf5=disabled && ninja -C build
- ninja -C build test
build_container_image:
stage: build_container
only:
- master
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [ "" ]
variables:
IMAGE: "crystfel"
IMAGE_TAG_LATEST: "latest"
IMAGE_TAG_SHA: $CI_COMMIT_SHORT_SHA
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- >
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE/$IMAGE:$IMAGE_TAG_LATEST
--destination $CI_REGISTRY_IMAGE/$IMAGE:$IMAGE_TAG_SHA
--build-arg HELM_VERSION=$HELM_VERSION
--build-arg RANCHER_CLI_VERSION=$RANCHER_CLI_VERSION
tags:
- kubernetes
build_container_image_tag:
stage: build_container
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [ "" ]
variables:
IMAGE: "crystfel"
IMAGE_TAG_VER: $CI_COMMIT_TAG
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- >
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE/$IMAGE:$IMAGE_TAG_VER
--build-arg HELM_VERSION=$HELM_VERSION
--build-arg RANCHER_CLI_VERSION=$RANCHER_CLI_VERSION
tags:
- kubernetes
rules:
- if: $CI_COMMIT_TAG
|