TSultanov commented on code in PR #25117:
URL: https://github.com/apache/beam/pull/25117#discussion_r1178853983
##########
playground/infrastructure/cloudbuild/playground_cd_manual.yaml:
##########
@@ -0,0 +1,102 @@
+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
+ Merged to: $_TARGET_PR_REPO_BRANCH
+ WebHook Action: $_PR_TYPE
+ Merge Status: $_MERGE_STATUS
+ Merge commit: $_MERGE_COMMIT
+ Playground DNS: $_DNS_NAME
+ Datastore namespace: $_DATASTORE_NAMESPACE
+ Exampes Origin: $_ORIGIN
+ Examples Subdirs: $_SUBDIRS
+ SDKs: $_SDKS
+ CD Script Concurrency: $_BEAM_CONCURRENCY"
+
+ if [[ -z "$_DNS_NAME" || -z "$_DATASTORE_NAMESPACE" ]]; then
+ echo "_DNS_NAME and _DATASTORE_NAMESPACE substitutions must be set
in the triger"
+ exit 1
+ fi
+
+
+ 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 $(date --utc '+%D %T') PR in $_PR_URL for the COMMIT
$_PR_COMMIT is not in closed state or not merged into the Apache/Beam master
repo."
+ exit 0
+ fi
+
+
+ echo "CDLOG Pull Request $_PR_URL has been successfully 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
Review Comment:
`apt-key` is deprecated
--
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]