# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
jobs:
  - name: cronjob-user-balance
    image:
      repository: registry.gitlab.com/skinholdings/user-balance-worker
      tag: latest
      pullPolicy: Always
    env:
      - name: "DOMAIN_NAME"
        value: "drakemall.com"
      - name: "VAULT_TOKEN"
        value: "TOKEN"
      - name: VAULT_CONFIG_VERSION
        value: "2"
      - name: "VAULT_CONFIG_KEYS"
        value: "production"
      - name: "VAULT_ENABLE"
        value: "yes"
      - name: SERVICE_NAME
        value: "user_balance_worker"
      - name: "DEBUG"
        value: "vault-config"
    schedule: "0 0 * * *"
    failedJobsHistoryLimit: 1
    successfulJobsHistoryLimit: 3
    concurrencyPolicy: Forbid
  - name: inventory-daily-snapshot
    image:
      repository: registry.gitlab.com/skinholdings/drakemall-jobs/inventory-daily-snapshot-worker
      tag: stable
      pullPolicy: Always
    env:
      - name: "DOMAIN_NAME"
        value: "drakemall.com"
      - name: "VAULT_TOKEN"
        value: "TOKEN"
      - name: VAULT_CONFIG_VERSION
        value: "2"
      - name: "VAULT_CONFIG_KEYS"
        value: "production"
      - name: "VAULT_ENABLE"
        value: "yes"
      - name: SERVICE_NAME
        value: "user_balance_worker"
      - name: "DEBUG"
        value: "vault-config"
    schedule: "0 0 * * *"
    failedJobsHistoryLimit: 1
    successfulJobsHistoryLimit: 3
    concurrencyPolicy: Forbid
