Skip to content
Snippets Groups Projects
gitlab-ci-openshift-vault.yml 908 B
Newer Older
Pierre Smeyers's avatar
Pierre Smeyers committed
# =====================================================================================================================
# === Vault template variant
# =====================================================================================================================
  # variabilized vault-secrets-provider image
  TBC_VAULT_IMAGE: "registry.gitlab.com/to-be-continuous/tools/vault-secrets-provider:master"
  # variables have to be explicitly declared in the YAML to be exported to the service
  VAULT_ROLE_ID: "$VAULT_ROLE_ID"
  VAULT_SECRET_ID: "$VAULT_SECRET_ID"
Pierre Smeyers's avatar
Pierre Smeyers committed

.os-base:
  services:
    - name: "$TBC_TRACKING_IMAGE"
      command: ["--service", "openshift", "5.1.0" ]
    - name: "$TBC_VAULT_IMAGE"
Pierre Smeyers's avatar
Pierre Smeyers committed
      alias: "vault-secrets-provider"
  variables:
    VAULT_JWT_TOKEN: "$VAULT_JWT_TOKEN"
  id_tokens:
    VAULT_JWT_TOKEN:
      aud: "$VAULT_OIDC_AUD"