version: v1.0
name: Clear Cache

execution_time_limit:
  hours: 2

agent:
  machine:
    type: e1-standard-2
    os_image: ubuntu1804

global_job_config:
  secrets:
  - name: docker-hub
  prologue:
    commands:
    - echo $DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin

blocks:
  - name: 'Clear Cache'
    task:
      jobs:
        - name: Clear Cache
          commands:
            - 'cache clear'
