Skip to content

Commit 282f383

Browse files
committed
BUILD/MINOR: ci: update images used in CI
1 parent b98628a commit 282f383

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

.gitlab-ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
variables:
33
DOCKER_HOST: tcp://docker:2375
44
GO_VERSION: "1.25"
5-
DOCKER_VERSION: "26.0"
5+
DOCKER_VERSION: "29.1"
66
stages:
77
- bots
88
- check-commit
@@ -15,7 +15,7 @@ pipelines-check:
1515
stage: bots
1616
needs: []
1717
image:
18-
name: $CI_REGISTRY_GO/docker:$DOCKER_VERSION-go$GO_VERSION
18+
name: $CI_REGISTRY_GO/golang:latest-alpine
1919
entrypoint: [""]
2020
rules:
2121
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
@@ -27,7 +27,7 @@ build-specification:
2727
stage: build
2828
needs: []
2929
image:
30-
name: $CI_REGISTRY_GO/golang:$GO_VERSION
30+
name: $CI_REGISTRY_GO/golang:latest-alpine
3131
entrypoint: [""]
3232
tags:
3333
- go
@@ -58,7 +58,7 @@ yaml-lint:
5858
generate:
5959
stage: generate
6060
image:
61-
name: $CI_REGISTRY_GO/docker:$DOCKER_VERSION-go$GO_VERSION
61+
name: $CI_REGISTRY_GO/golang:latest-alpine
6262
entrypoint: [""]
6363
services:
6464
- name: $CI_REGISTRY_GO/docker:$DOCKER_VERSION-dind
@@ -84,6 +84,9 @@ generate:
8484

8585
build:
8686
stage: build
87+
image:
88+
name: $CI_REGISTRY_GO/golang:latest-alpine
89+
entrypoint: [""]
8790
needs: []
8891
tags:
8992
- go
@@ -99,7 +102,7 @@ tidy:
99102
stage: lint
100103
needs: ["build"]
101104
image:
102-
name: $CI_REGISTRY_GO/golang:$GO_VERSION
105+
name: $CI_REGISTRY_GO/golang:$GO_VERSION-alpine
103106
entrypoint: [""]
104107
tags:
105108
- go
@@ -114,7 +117,7 @@ lint:
114117
stage: lint
115118
needs: ["build"]
116119
image:
117-
name: $CI_REGISTRY_GO/golang:$GO_VERSION
120+
name: $CI_REGISTRY_GO/golang:$GO_VERSION-alpine
118121
entrypoint: [""]
119122
tags:
120123
- go
@@ -128,12 +131,11 @@ license-check:
128131
stage: lint
129132
needs: ["build"]
130133
image:
131-
name: $CI_REGISTRY_GO/golang:$GO_VERSION
134+
name: $CI_REGISTRY_GO/golang:latest-alpine
132135
entrypoint: [""]
133136
tags:
134137
- go
135138
script:
136-
- go install github.com/google/go-licenses@latest
137139
- PROJECT="$(go list -m)"
138140
- ALLOWED_LICENSES="$(<.allowed_license_types)"
139141
- go-licenses report --ignore "$PROJECT" .
@@ -146,7 +148,7 @@ lint-commit-msg:
146148
stage: lint
147149
needs: ["build"]
148150
image:
149-
name: $CI_REGISTRY_GO/commit-check:5.1.1
151+
name: $CI_REGISTRY_GO/commit-check:latest
150152
entrypoint: [""]
151153
tags:
152154
- go
@@ -159,7 +161,7 @@ test:
159161
stage: test
160162
needs: ["build"]
161163
image:
162-
name: $CI_REGISTRY_GO/golang:$GO_VERSION
164+
name: $CI_REGISTRY_GO/golang:latest-alpine
163165
entrypoint: [""]
164166
tags:
165167
- go
@@ -173,7 +175,7 @@ test-equal:
173175
stage: test
174176
needs: ["build"]
175177
image:
176-
name: $CI_REGISTRY_GO/golang:$GO_VERSION
178+
name: $CI_REGISTRY_GO/golang:latest-alpine
177179
entrypoint: [""]
178180
tags:
179181
- go
@@ -197,7 +199,7 @@ test-equal:
197199
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
198200
- if: $CI_PIPELINE_SOURCE == 'push'
199201
before_script:
200-
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY_GO
202+
- docker login -u='$app' -p $CI_REGISTRY_TOKEN $CI_REGISTRY_GO
201203
- docker pull -q $CI_REGISTRY_GO/golang:$GO_VERSION-alpine
202204
- docker image tag $CI_REGISTRY_GO/golang:$GO_VERSION-alpine golang:$GO_VERSION-alpine
203205
- docker pull -q $CI_REGISTRY_GO/haproxy-alpine:$HAPROXY_VERSION

0 commit comments

Comments
 (0)