From f870cb1f9ec20739694897a2fb61e0aec9f17edc Mon Sep 17 00:00:00 2001 From: Nikos Roussos Date: Fri, 23 Apr 2021 13:36:26 +0300 Subject: [PATCH 1/2] Use circleci image for booking a test instance --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 78371350cf..8939bdf95b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -222,7 +222,7 @@ jobs: environment: GOOGLE_PROJECT_ID: planet-4-151612 docker: - - image: greenpeaceinternational/p4-builder:latest + - image: greenpeaceinternational/circleci-base:latest auth: &docker_auth steps: - attach_workspace: From c18f044179f555d7755a5b211dbde10cb2d06aa6 Mon Sep 17 00:00:00 2001 From: Nikos Roussos Date: Fri, 23 Apr 2021 13:36:53 +0300 Subject: [PATCH 2/2] Add a job for posting a PR comment when test instance is ready --- .circleci/config.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8939bdf95b..889909e63e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,6 +23,10 @@ workflows: type: approval requires: - request-instance + - comment-pr: + context: org-global + requires: + - instance-ready - lighthouse: requires: - instance-ready @@ -269,6 +273,21 @@ jobs: paths: - test-instance - booking.json + - pr + + comment-pr: + docker: + - image: greenpeaceinternational/circleci-base:latest + auth: &docker_auth + steps: + - attach_workspace: + at: /tmp/workspace + - run: + name: Post comment to PR + command: | + post-comment-to-pr.py \ + --pr-url $(cat /tmp/workspace/pr) \ + --test-instance $(cat /tmp/workspace/test-instance) lighthouse: executor: lighthouse-check/default