Skip to content

Commit 70ad1cf

Browse files
committed
BUILD/MAJOR: CI: move to private repository for pulling images
dockerhub has introduced limits on how many pulls can be done in certain time.
1 parent b9e732d commit 70ad1cf

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

.gitlab-ci.yml

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,75 @@
11
stages:
22
- lint
3+
- build
34
- e2e
45
variables:
56
DOCKER_HOST: tcp://docker:2375
7+
DOCKER_BASE_IMAGE: $CI_REGISTRY_GO/haproxy-alpine
68

79
golangci-lint:
810
stage: lint
911
artifacts:
1012
paths:
1113
- build
1214
image:
13-
name: golangci/golangci-lint:v1.21.0
15+
name: $CI_REGISTRY_GO/golangci/golangci-lint:v1.21.0
1416
entrypoint: [ "" ]
1517
tags:
16-
- docker
18+
- go
1719
script:
18-
- go env
19-
- go mod verify
2020
- golangci-lint run -v --color always --timeout 120s
21-
- make build
22-
2321
lint-commit-msg:
2422
stage: lint
2523
image:
26-
name: haproxytech/check-commit:latest
27-
entrypoint: [ "" ]
24+
name: $CI_REGISTRY_GO/check-commit:latest
25+
entrypoint: [""]
2826
tags:
2927
- go
3028
script:
3129
- go run /check.go
3230

31+
build:
32+
stage: build
33+
artifacts:
34+
paths:
35+
- build
36+
image:
37+
name: $CI_REGISTRY_GO/golang:1.15
38+
entrypoint: [ "" ]
39+
tags:
40+
- go
41+
script:
42+
- go env
43+
- go mod verify
44+
- make build
45+
3346
.e2e:
3447
stage: e2e
3548
image:
36-
name: docker:stable
49+
name: $CI_REGISTRY_GO/docker:stable
3750
entrypoint: [ "" ]
3851
services:
39-
- name: docker:18.09.7-dind
52+
- name: $CI_REGISTRY_GO/docker:18.09.7-dind
4053
alias: docker
4154
tags:
4255
- go
4356
before_script:
4457
- apk add git bash curl jq bats
58+
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY_GO
4559
script:
4660
- bash -x ./e2e/run.bash
4761

48-
v21:
62+
HAProxy_2_1:
4963
extends: .e2e
5064
variables:
5165
LOCAL_IP_ADDRESS: docker
5266
HAPROXY_VERSION: "2.1"
53-
54-
v22:
67+
HAProxy_2_2:
5568
extends: .e2e
5669
variables:
5770
LOCAL_IP_ADDRESS: docker
5871
HAPROXY_VERSION: "2.2"
59-
60-
v23:
72+
HAProxy_2_3:
6173
extends: .e2e
6274
variables:
6375
LOCAL_IP_ADDRESS: docker

0 commit comments

Comments
 (0)