Skip to content
Snippets Groups Projects
Select Git revision
  • ef7357d022dee576d3015ab910cc162a28336b35
  • main default protected
  • renovate/main-redis-5.x
  • next
  • revert-31645-feat/rename-gradle-wrapper-validation-action
  • fix/36615b-branch-reuse-no-cache
  • chore/punycode
  • fix/36615-branch-reuse-bug
  • refactor/pin-new-value
  • feat/36219--git-x509-signing
  • feat/structured-logger
  • hotfix/39.264.1
  • feat/skip-dangling
  • gh-readonly-queue/next/pr-36034-7a061c4ca1024a19e2c295d773d9642625d1c2be
  • hotfix/39.238.3
  • refactor/gitlab-auto-approve
  • feat/template-strings
  • gh-readonly-queue/next/pr-35654-137d934242c784e0c45d4b957362214f0eade1d7
  • fix/32307-global-extends-merging
  • fix/32307-global-extends-repositories
  • gh-readonly-queue/next/pr-35009-046ebf7cb84ab859f7fefceb5fa53a54ce9736f8
  • 41.35.2
  • 41.35.1
  • 41.35.0
  • 41.34.1
  • 41.34.0
  • 41.33.0
  • 41.32.3
  • 41.32.2
  • 41.32.1
  • 41.32.0
  • 41.31.1
  • 41.31.0
  • 41.30.5
  • 41.30.4
  • 41.30.3
  • 41.30.2
  • 41.30.1
  • 41.30.0
  • 41.29.1
  • 41.29.0
41 results

common.ts

Blame
  • user avatar
    Sergio Zharinov authored and Rhys Arkins committed
    Co-authored-by: default avatarRhys Arkins <rhys@arkins.net>
    ef7357d0
    History
    common.ts 550 B
    export type Opt<T> = T | null | undefined;
    
    export enum BinarySource {
      Auto = 'auto',
      Docker = 'docker',
      Global = 'global',
    }
    
    export interface ExecConfig {
      binarySource: Opt<BinarySource>;
      dockerUser: Opt<string>;
      localDir: Opt<string>;
      cacheDir: Opt<string>;
    }
    
    export type VolumesPair = [string, string];
    export type VolumeOption = string | VolumesPair | null | undefined;
    
    export interface DockerOptions {
      image: string;
      tag?: Opt<string>;
      volumes?: Opt<VolumeOption[]>;
      envVars?: Opt<Opt<string>[]>;
      cwd?: Opt<string>;
    }