Skip to content
Snippets Groups Projects
Select Git revision
  • fa29a778876aa11365e077776462269cd742fcfe
  • master default protected
  • 3
  • 3.14
  • 3.14.2
  • 3.14.1
  • 3.14.0
  • 3.13
  • 3.13.1
  • 3.13.0
  • 3.12
  • 3.12.0
  • 3.11
  • 3.11.5
  • 3.11.4
  • 3.11.3
  • 3.11.2
  • 3.11.1
  • 3.11.0
  • 3.10.3
  • 3.10.2
  • 3.10.1
22 results

gitlab-ci-semrel-vault.yml

Blame
  • gitlab-ci-semrel-vault.yml 1.14 KiB
    # =====================================================================================================================
    # === Vault template variant
    # =====================================================================================================================
    spec:
      inputs:
        vault-base-url:
          description: The Vault server base API url
          default: ''
        vault-oidc-aud:
          description: The `aud` claim for the JWT
          default: $CI_SERVER_URL
    ---
    variables:
      # variabilized vault-secrets-provider image
      TBC_VAULT_IMAGE: registry.gitlab.com/to-be-continuous/tools/vault-secrets-provider:latest
      # 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"
      VAULT_OIDC_AUD: $[[ inputs.vault-oidc-aud ]]
      VAULT_BASE_URL: $[[ inputs.vault-base-url ]]
    
    .semrel-base:
      services:
        - name: "$TBC_TRACKING_IMAGE"
          command: ["--service", "semrel", "3.14.1"]
        - name: "$TBC_VAULT_IMAGE"
          alias: "vault-secrets-provider"
      variables:
        VAULT_JWT_TOKEN: "$VAULT_JWT_TOKEN"
      id_tokens:
        VAULT_JWT_TOKEN:
          aud: "$VAULT_OIDC_AUD"