[ 
https://issues.apache.org/jira/browse/BEAM-8105?focusedWorklogId=310339&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-310339
 ]

ASF GitHub Bot logged work on BEAM-8105:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Sep/19 06:37
            Start Date: 11/Sep/19 06:37
    Worklog Time Spent: 10m 
      Work Description: markflyhigh commented on pull request #9506: 
[BEAM-8105] Docker images release scripts
URL: https://github.com/apache/beam/pull/9506#discussion_r323055624
 
 

 ##########
 File path: release/src/main/scripts/build_release_candidate.sh
 ##########
 @@ -198,6 +200,45 @@ if [[ $confirmation = "y" ]]; then
   rm -rf ~/${PYTHON_ARTIFACTS_DIR}
 fi
 
+echo "[Current Step]: Stage SDK docker images"
+echo "Do you want to proceed? [y|N]"
+read confirmation
+if [[ $confirmation = "y" ]]; then
+  echo "============Staging SDK docker images on docker hub========="
+  cd ~
+  if [[ -d ${LOCAL_PYTHON_STAGING_DIR} ]]; then
+    rm -rf ${LOCAL_PYTHON_STAGING_DIR}
+  fi
+  mkdir -p ${LOCAL_PYTHON_STAGING_DIR}
+  cd ${LOCAL_PYTHON_STAGING_DIR}
+
+  echo '-------------------Cloning Beam Release Branch-----------------'
+  git clone ${GIT_REPO_URL}
+  cd ${BEAM_ROOT_DIR}
+  git checkout ${RELEASE_BRANCH}
+
+  echo '-------------------Generating and Pushing Python 
images-----------------'
+  ./gradlew :sdks:python:container:buildAll -Pdocker-tag=${RELEASE}_rc${RC_NUM}
+  for ver in "${PYTHON_VER[@]}"; do
+     docker push apachebeam/${ver}_sdk:${RELEASE}_rc${RC_NUM} &
+  done
+
+  echo '-------------------Generating and Pushing Java images-----------------'
+  ./gradlew :sdks:java:container:dockerPush -Pdocker-tag=${RELEASE}_rc${RC_NUM}
+
+  echo '-------------------Generating and Pushing Go images-----------------'
+  ./gradlew :sdks:go:container:dockerPush -Pdocker-tag=${RELEASE}_rc${RC_NUM}
+
+  rm -rf ~/${PYTHON_ARTIFACTS_DIR}
 
 Review comment:
   Why do we need to remove `~/python` here?
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 310339)
    Time Spent: 3h 50m  (was: 3h 40m)

> Add container publishing instruction to release manual
> ------------------------------------------------------
>
>                 Key: BEAM-8105
>                 URL: https://issues.apache.org/jira/browse/BEAM-8105
>             Project: Beam
>          Issue Type: Sub-task
>          Components: website
>            Reporter: Hannah Jiang
>            Assignee: Hannah Jiang
>            Priority: Major
>             Fix For: 2.16.0
>
>          Time Spent: 3h 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to