Skip to main content

CI/CD

Flinkwerk ships with ready-made CI/CD routines which enable you to automatically deploy your Flinkwerk projects to Kubernetes clusters without expert knowledge.

It is easy to integrate Flinkwerk with your favourite CI/CD tool in case you want to automatically deploy your Flinkwerk project upon every push to your Git repository.

Integrate Flinkwerk with GitLab

For example, it takes just a few lines of configuration to integrate Flinkwerk with GitLab.

Simply add a .gitlab-ci.yml file with the following content in the root of your Git repository which must equal the root of your Flinkwerk project.

.gitlab-ci.yml
# Pull Flinkwerk CLI
image: registry.gitlab.com/flinkwerk/flinkwerk/cli

# Build container image with Flinkwerk CLI
build:
stage: build
script:
- flinkwerk build

# Deploy with Flinkwerk CLI
deploy:
stage: deploy
script:
- flinkwerk deploy

With that set up, you can configure Flinkwerk to deploy Git branches to different environments with specific clusters, custom domains, etc.