From a174763b94327f24d9e0e57be45e0c4eeccdb25a Mon Sep 17 00:00:00 2001 From: Bala Kaza Venkata <43208983+BalaKaza@users.noreply.github.com> Date: Mon, 3 Feb 2020 12:46:36 -0500 Subject: [PATCH] GEODE-7745: (#4643) change PR resource to digitalocean fork * GEODE-7745 : Fix the missing Pull Request builds in geode. Change the githubpull request resource to use digitalocean's repo which seems to have the patch fix for the commit check. Signed-off-by: Steve Sienkowski * GEODE-7745: Fix the missing Pull Request builds in geode. Create the docker image for github-pr-resource that uses the digitalocean repo.This repo has the patch fix which pull requests get triggered. Signed-off-by: Bala Kaza Venkata --- ci/pipelines/images/jinja.template.yml | 27 ++++++++++++++++++++ ci/pipelines/pull-request/jinja.template.yml | 5 +++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/ci/pipelines/images/jinja.template.yml b/ci/pipelines/images/jinja.template.yml index 20b6158ec221..b90cf1e63faa 100644 --- a/ci/pipelines/images/jinja.template.yml +++ b/ci/pipelines/images/jinja.template.yml @@ -168,7 +168,34 @@ resources: password: ((docker-password)) repository: gcr.io/((gcp-project))/((pipeline-prefix))gce-instances-resource +- name: github-pr-resource-image + type: docker-image + source: + username: ((docker-username)) + password: ((docker-password)) + repository: gcr.io/((gcp-project))/((pipeline-prefix))github-pr-resource + +- name: github-pr-resource-dockerfile + type: git + source: + branch: master + uri: https://github.com/digitalocean/github-pr-resource.git + version: + ref: 1abb4b2a162e78099dab0b30144fec1e6c9b696d + jobs: +- name: build-github-pr-resource-image + public: ((public-pipelines)) + serial: true + plan: + - get: alpine-tools-image + passed: [build-alpine-tools-docker-image] + - get: github-pr-resource-dockerfile + - put: github-pr-resource-image + params: + build: github-pr-resource-dockerfile + tag_as_latest: true + - name: build-concourse-docker-image public: ((public-pipelines)) serial: true diff --git a/ci/pipelines/pull-request/jinja.template.yml b/ci/pipelines/pull-request/jinja.template.yml index a4ee439ba874..f078f8a64e81 100644 --- a/ci/pipelines/pull-request/jinja.template.yml +++ b/ci/pipelines/pull-request/jinja.template.yml @@ -80,7 +80,10 @@ resource_types: - name: pull-request type: docker-image source: - repository: teliaoss/github-pr-resource + username: ((docker-username)) + password: ((docker-password)) + repository: gcr.io/((gcp-project))/((pipeline-prefix))github-pr-resource + tag: latest - name: concourse-metadata-resource type: docker-image source: