Skip to content

Commit

Permalink
Add gitlab ci file for docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Dedden committed Feb 23, 2024
1 parent fcc379a commit 92dcf3f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

include:
- project: 'deepl/ops/ci-cd-infrastructure/gitlab-ci-lib'
file:
- '/templates/.buildkit.yml'

stages:
- build

build:
stage: build
extends: .buildkit
rules:
- if: $CI_COMMIT_TAG =~ /^\d{4}\.\d{1,2}\.\d+-fork-v\d+$/
- when: manual
allow_failure: true
tags:
- k8s
variables:
TAG: $CI_COMMIT_TAG
HARBOR_REGISTRY_PROJECT: research
DOCKER_IMAGE: ${HARBOR_REGISTRY}/research/${CI_PROJECT_NAME}
BUILDKIT_IMAGE: ${DOCKER_IMAGE}:${TAG}
BUILDKIT_DOCKERFILE_DIR: dask_kubernetes/operator/deployment
BUILDKIT_DOCKERFILE_NAME: Dockerfile

0 comments on commit 92dcf3f

Please sign in to comment.