Skip to content

Deployment with several flavours #16

@frmadem

Description

@frmadem

The current situation

The actual deployment system let us to:

  1. Define a specif flavour, with a particular Dockerfile and build-args and trigger its construction with an event.
  2. Define a tenant-app-env chain to deploy in one or several services names
  3. Select a flavour to deploy.

Therefore:

# build-images.yaml
foo:
  triggers:
    push:
      branches: ["master"]
    build_args:
      arg:  "value 1"
      arg2: "value 2"
   dockerfile: Dockerfile.foo

Is going to create an image whenever a push happens master branch.

With this file we can control where the new image is going to be deployed:

# deployment.yml
foo:
  app:
    dev:
      service_names:
        - service1
        - service2
      version: branch_master
      flavour: foo

The image built, following the foo definition on build-images.yaml, is going to be deployed as service1 and service2 in the foo-app-dev tenant-app-env chain.

The problem

We are facing the following situation:

  1. The TL wants to build to images (different build-args) for the same trigger and deploy them in different services within the same tenant-app-env.

Therefore,

  1. The deployment needs to let us define a particular flavor for every service name.
  2. The current system is not enough because it links the same flavour to all the services whitin a particular tenant-app-env chain.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions