<commit_before>---
resource_types:
  - name: google-cloud-storage
    type: docker-image
    source:
      repository: frodenas/gcs-resource

resources:
  - name: buildpacks-ci
    type: git
    source:
      uri: {{buildpacks-ci-git-uri-public}}
      branch: master

  - name: nodejs-cnb
    type: git
    source:
      uri: git@github.com:cloudfoundry/nodejs-cnb.git
      private_key: {{cf-buildpacks-eng-github-ssh-key}}
      branch: master

  - name: npm-cnb
    type: git
    source:
      uri: <EMAIL>:cloudfoundry/npm-cnb.git
      private_key: {{cf-buildpacks-eng-github-ssh-key}}
      branch: master

  - name: yarn-cnb
    type: git
    source:
      uri: <EMAIL>:cloudfoundry/yarn-cnb.git
      private_key: {{cf-buildpacks-eng-github-ssh-key}}
      branch: master

  - name: version
    type: semver
    source:
      bucket: cnb-versions
      key: builder/cflinuxfs3
      access_key_id: {{pivotal-offline-buildpacks-s3-access-key}}
      secret_access_key: {{pivotal-offline-buildpacks-s3-secret-key}}

  - name: builder-image
    type: docker-image
    source:
      repository: {{buildpacks-docker-ci-repo}}
      email: {{buildpacks-docker-user-email}}
      username: {{buildpacks-docker-user-username}}
      password: {{<PASSWORD>}}

#  - name: lifecycle
#    type: google-cloud-storage
#    source:
#      bucket: cloud-native-buildpacks-lifecycle-binaries/development/lifecycle-binaries-latest.tgz

#  - name: pack
#    type: git
#    source:
#      uri: <EMAIL>:cloudfoundry/pack
#      branch: master
jobs:
  - name: update-builder-image
    plan:
      - aggregate:
        - get: buildpacks-ci
        - get: nodejs-cnb
          trigger: true
        - get: npm-cnb
          trigger: true
        - get: yarn-cnb
          trigger: true
#        - get: lifecycle
#          trigger: true
#        - get: pack
#          trigger: true
        - get: version
          params: { bump: patch }
      - task: update-builder-image
        file: buildpacks-ci/tasks/update-builder-image/task.yml
      - put: builder-image
        params:
          load_file: docker-artifacts/builder.tgz
          tag_file: version/cnb-builder-cflinuxfs3
          tag_prefix: "cflinuxfs3-v"
          tag_as_latest: true
      - put: version<commit_msg>adds privileged flag so that docker is able to run<commit_after>---
resource_types:
  - name: google-cloud-storage
    type: docker-image
    source:
      repository: frodenas/gcs-resource

resources:
  - name: buildpacks-ci
    type: git
    source:
      uri: {{buildpacks-ci-git-uri-public}}
      branch: master

  - name: nodejs-cnb
    type: git
    source:
      uri: <EMAIL>:cloudfoundry/nodejs-cnb.git
      private_key: {{cf-buildpacks-eng-github-ssh-key}}
      branch: master

  - name: npm-cnb
    type: git
    source:
      uri: <EMAIL>:cloudfoundry/npm-cnb.git
      private_key: {{cf-buildpacks-eng-github-ssh-key}}
      branch: master

  - name: yarn-cnb
    type: git
    source:
      uri: <EMAIL>:cloudfoundry/yarn-cnb.git
      private_key: {{cf-buildpacks-eng-github-ssh-key}}
      branch: master

  - name: version
    type: semver
    source:
      bucket: cnb-versions
      key: builder/cflinuxfs3
      access_key_id: {{pivotal-offline-buildpacks-s3-access-key}}
      secret_access_key: {{pivotal-offline-buildpacks-s3-secret-key}}

  - name: builder-image
    type: docker-image
    source:
      repository: {{buildpacks-docker-ci-repo}}
      email: {{buildpacks-docker-user-email}}
      username: {{buildpacks-docker-user-username}}
      password: {{<PASSWORD>}}

#  - name: lifecycle
#    type: google-cloud-storage
#    source:
#      bucket: cloud-native-buildpacks-lifecycle-binaries/development/lifecycle-binaries-latest.tgz

#  - name: pack
#    type: git
#    source:
#      uri: <EMAIL>:cloudfoundry/pack
#      branch: master
jobs:
  - name: update-builder-image
    plan:
      - aggregate:
        - get: buildpacks-ci
        - get: nodejs-cnb
          trigger: true
        - get: npm-cnb
          trigger: true
        - get: yarn-cnb
          trigger: true
#        - get: lifecycle
#          trigger: true
#        - get: pack
#          trigger: true
        - get: version
          params: { bump: patch }
      - task: update-builder-image
        file: buildpacks-ci/tasks/update-builder-image/task.yml
        privileged: true
      - put: builder-image
        params:
          load_file: docker-artifacts/builder.tgz
          tag_file: version/cnb-builder-cflinuxfs3
          tag_prefix: "cflinuxfs3-v"
          tag_as_latest: true
      - put: version
{'fraction_non_alphanumeric': 0.11876225757245587, 'fraction_numerical': 0.0021791239921551534, 'mean_word_length': 2.1331058020477816, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2068267', 'n_tokens_mistral': 1593, 'n_tokens_neox': 1537, 'n_words': 296}