anchor.diff:      passed: [build-docker-image]
       trigger: true
     - get: LicenseFinder
  -    resource: git-master
  +    resource: lf-git
       trigger: true
       version: every
     - task: run-rubocop
  
positive.code: <% end %>
  
  resources:
  - name: git-master
    type: git
    source:
      uri: git@github.com:pivotal-legacy/LicenseFinder.git
  
negative.code: 
  - name: manual-release
    plan:
    - get: lf-git
      passed: [<%= ruby_versions.map{ |version| "ruby-#{version}"}.join(', ') %>]
    - get: dockerhub
      params:
        save: true
    - get: lf-release
    - task: update-changelog
      image: dockerhub
      params:
        GIT_USERNAME: ((GithubApiUser))
        GIT_EMAIL: ((GithubApiEmail))
      file: lf-git/ci/tasks/update-changelog.yml
    - put: dockerhub
      params:
        build: lf-git
        tag_file: version/version.txt
        tag_as_latest: true
    - task: build-and-push-gem
      image: dockerhub
      params:
        GIT_USERNAME: ((GithubApiUser))
        GIT_EMAIL: ((GithubApiEmail))
        GIT_PRIVATE_KEY: ((CfOslBot.private_key))
        GEM_API_KEY: ((LicenseFinderGemApiKey))
      file: lf-git/ci/tasks/build-and-push-gem.yml
    - put: lf-git
      params:
        repository: lf-git-changed
    - put: lf-release
      params:
        name: version/tag.txt
        tag: version/tag.txt
  