Skip to content

Commit cc41f45

Browse files
committed
fix: Build on k8s executor
1 parent e104516 commit cc41f45

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.gitlab-ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ variables:
77
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
88
MAIN_IMAGE_TAG: $CI_REGISTRY_IMAGE:main
99
RELEASE_IMAGE_TAG: $CI_REGISTRY_IMAGE:release
10+
DOCKER_TLS_CERTDIR: ""
11+
DOCKER_HOST: tcp://docker:2375
1012

1113
lint:
1214
image: node:22
@@ -17,20 +19,28 @@ lint:
1719
- yarn lint
1820

1921
build:
20-
image: docker.io/docker:stable
22+
image: docker:24.0.5-cli
23+
services:
24+
- name: docker:24.0.5-dind
2125
stage: build
2226
tags:
2327
- k8s-privileged
28+
before_script:
29+
- until docker info >/dev/null 2>&1; do sleep 1; done
2430
script:
2531
- DOCKER_IMAGE_TAGS="$MAIN_IMAGE_TAG" ./scripts/docker-build-push.sh
2632
only:
2733
- main
2834

2935
release:
30-
image: docker.io/docker:stable
36+
image: docker:24.0.5-cli
37+
services:
38+
- name: docker:24.0.5-dind
3139
stage: release
3240
tags:
3341
- k8s-privileged
42+
before_script:
43+
- until docker info >/dev/null 2>&1; do sleep 1; done
3444
script:
3545
- pwd
3646
- env DOCKER_IMAGE_TAGS="$RELEASE_IMAGE_TAG

0 commit comments

Comments
 (0)