You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dg...@apache.org on 2023/02/13 15:48:41 UTC

[openwhisk-runtime-go] branch master updated: adapt publish action to historical tag structure (#183)

This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-runtime-go.git


The following commit(s) were added to refs/heads/master by this push:
     new dc4e01f  adapt publish action to historical tag structure (#183)
dc4e01f is described below

commit dc4e01f52b269d9e4422411f8af9d5045cfb36bc
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Mon Feb 13 10:48:34 2023 -0500

    adapt publish action to historical tag structure (#183)
---
 .github/workflows/ci.yaml | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 099abb8..d3e6e18 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -77,9 +77,6 @@ jobs:
 
       # Conditionally publish runtime images to DockerHub
       # Important: naming convention for release tags is runtime@version
-      # For this repo expected tags:
-      #   actionloop@X.Y.Z
-      #   golang1.N@X.Y.Z
       - name: Docker Login
         if: ${{ env.PUSH_NIGHTLY  == 'true' || env.PUSH_RELEASE == 'true' }}
         uses: docker/login-action@v2
@@ -105,6 +102,11 @@ jobs:
         if: ${{ env.PUSH_RELEASE == 'true' }}
         working-directory: runtime
         run: |
-          RUNTIME_NAME=${GITHUB_REF_NAME%@*}
+          RUNTIME_VERSION=${GITHUB_REF_NAME%@*}
           IMAGE_TAG=${GITHUB_REF_NAME##*@}
-          ./gradlew :core:$RUNTIME_NAME:distDocker -PdockerRegistry=docker.io -PdockerImagePrefix=openwhisk -PdockerImageTag=$IMAGE_TAG
+          if [[ ${RUNTIME_VERSION} =~ 1\.[0-9]+ ]]; then
+            RUNTIME="golang$RUNTIME_VERSION"
+          elif [ ${RUNTIME_VERSION} == "actionloop" ]; then
+            RUNTIME="actionloop"
+          fi
+          ./gradlew :core:$RUNTIME:distDocker -PdockerRegistry=docker.io -PdockerImagePrefix=openwhisk -PdockerImageTag=$IMAGE_TAG