Skip to content

Commit fead792

Browse files
committed
ci: build and push for prod branch
1 parent fa87b2a commit fead792

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.gitlab-ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ build:
3232
only:
3333
- main
3434

35+
build-prod:
36+
image: docker:24.0.5-cli
37+
services:
38+
- name: docker:24.0.5-dind
39+
stage: build
40+
tags:
41+
- k8s-privileged
42+
before_script:
43+
- until docker info >/dev/null 2>&1; do sleep 1; done
44+
script:
45+
- DOCKER_IMAGE_TAGS="$CI_REGISTRY_IMAGE:prod-$CI_COMMIT_REF_SLUG"
46+
./scripts/docker-build-push.sh
47+
only:
48+
- prod
49+
3550
release:
3651
image: docker:24.0.5-cli
3752
services:

0 commit comments

Comments
 (0)