TSultanov commented on code in PR #25117:
URL: https://github.com/apache/beam/pull/25117#discussion_r1158647591


##########
playground/infrastructure/cloudbuild/playground_cd_stable.yaml:
##########
@@ -0,0 +1,98 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+ # contributor license agreements.  See the NOTICE file distributed with
+ # this work for additional information regarding copyright ownership.
+ # The ASF licenses this file to You under the Apache License, Version 2.0
+ # (the "License"); you may not use this file except in compliance with
+ # the License.  You may obtain a copy of the License at
+ #
+ #     http://www.apache.org/licenses/LICENSE-2.0
+ #
+ # Unless required by applicable law or agreed to in writing, software
+ # distributed under the License is distributed on an "AS IS" BASIS,
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+
+steps:
+  - name: ubuntu
+    args:
+      - '-c'
+      - |-
+        echo "Search for CDLOG keyword to find valuable logs entries"
+        echo "CDLOG $(date --utc '+%D %T') Trigger run inputs: 
+         PR URL: $_PR_URL; 
+         PR Source Repo: $_FORK_REPO; 
+         PR Branch: $_PR_BRANCH;
+         PR Commit: $_PR_COMMIT; 
+         WebHook Action: $_PR_TYPE; 
+         Merged to: $_TARGET_PR_REPO_BRANCH; 
+         Playground DNS: $_DNS_NAME; "
+        if [[ ${_TARGET_PR_REPO_BRANCH} != "apache:master" ]]; then
+            echo "CDLOG Merging not into the master, but into the branch 
apache/${_TARGET_PR_REPO_BRANCH}. Exiting"
+            exit 0
+        fi
+        
+        if [[ ${_PR_TYPE} == "closed" ]] && [[ ${_MERGE_STATUS} == "true" ]]; 
then
+
+            echo "CDLOG Pull Request $_PR_URL has been successfully closed and 
merged into Apache/Beam GitHub repository. Continuing the process."
+              
+            echo "CDLOG Continous Deployment of Playground Examples (CD) in 
the progress."
+  
+            apt update > /dev/null 2>&1
+  
+            apt install -y git curl > /dev/null 2>&1
+  
+            apt-get install -y apt-transport-https ca-certificates gnupg > 
/dev/null 2>&1
+  
+            echo "deb https://packages.cloud.google.com/apt cloud-sdk main" > 
/dev/null 2>&1 | tee -a
+            /etc/apt/sources.list.d/google-cloud-sdk.list > /dev/null 2>&1
+  
+            curl https://packages.cloud.google.com/apt/doc/apt-key.gpg > 
/dev/null 2>&1 | apt-key add - > /dev/null 2>&1 
+  
+            apt-get update && apt-get install -y google-cloud-sdk > /dev/null 
2>&1
+  
+            git clone --branch master https://github.com/apache/beam.git > 
/dev/null 2>&1

Review Comment:
   and on the branch from which we are bulding also



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to