github.com/greenplum-db/gpbackup@v0.0.0-20240517212602-89daab1885b3/ci/cleanup/plugin-cleanup.yml (about)

     1  # Fly this pipeline with the command: 
     2  # fly -t TARGET sp -p gpbackup_clean_plugin_storage -c gpbackup/ci/cleanup/plugin-cleanup.yml -v gpbackup-git-branch=main -v source_host=SOURCE_IP -v dest_host=DEST_IP
     3  ---
     4  ##############################################
     5  groups:
     6  - name: all
     7    jobs:
     8    - clean-plugin-storage
     9  ##############################################
    10  
    11  ##############################################
    12  resource_types:
    13  - name: gcs
    14    type: registry-image
    15    source:
    16      repository: frodenas/gcs-resource
    17  ##############################################
    18  
    19  ##############################################
    20  resources:
    21  - name: weekly-trigger
    22    type: time
    23    source:
    24      location: America/Los_Angeles
    25      days: [Sunday]
    26      start: 6:00 AM
    27      stop: 7:00 AM
    28  
    29  - name: rocky8-gpdb6-image
    30    type: registry-image
    31    source:
    32      repository: gcr.io/data-gpdb-public-images/gpdb6-rocky8-test
    33      tag: latest
    34  
    35  - name: gpbackup
    36    type: git
    37    icon: github-circle
    38    source:
    39      uri: https://github.com/greenplum-db/gpbackup
    40      branch: ((gpbackup-git-branch))
    41  
    42  ##############################################
    43  
    44  ##############################################
    45  anchors:
    46  - &ddboost_params
    47    # TODO -- this is currently flown by providing with IP addresses passed to command line.  
    48      # This prevents needing to duplicate dev/prod files, and also avoids rewriting gen_pipeline.py
    49      # If we move to a one-concourse approach, these can easily be interpolated from Vault again
    50    DD_SOURCE_HOST: ((source_host))
    51    DD_DEST_HOST: ((dest_host))
    52    DD_SYSADMIN_PW: ((dp/prod/datadomain_sysadmin_password_gcp))
    53  ##############################################
    54  
    55  ##############################################
    56  jobs:
    57  - name: clean-plugin-storage
    58    plan: 
    59    - in_parallel:
    60      - get: rocky8-gpdb6-image
    61      - get: gpbackup
    62      - get: weekly-trigger
    63        trigger: true
    64    - task: clean-plugins
    65      image: rocky8-gpdb6-image
    66      params:
    67        <<: *ddboost_params
    68      config:
    69        platform: linux
    70        inputs:
    71          - name: gpbackup
    72        run: 
    73          path: "bash"
    74          args:
    75            - gpbackup/ci/scripts/call-clean-ddboost.bash
    76  ##############################################