You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2022/09/22 12:27:12 UTC

[camel-k] branch release-1.8.x updated (871ea1ab3 -> 25ea87e16)

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

pcongiusti pushed a change to branch release-1.8.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git


    from 871ea1ab3 Test operator image installed by the OLM
     new 78cf64547 fix(ci): release nightly as an action
     new 25ea87e16 doc: add LTS parameter

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/actions/release-nightly/action.yml | 120 +++++++++++++++++++++++++++++
 docs/antora.yml                            |   1 +
 2 files changed, 121 insertions(+)
 create mode 100644 .github/actions/release-nightly/action.yml


[camel-k] 02/02: doc: add LTS parameter

Posted by pc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch release-1.8.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 25ea87e16e3e3ce35c400848525fdb461372c1d3
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Thu Sep 22 11:40:29 2022 +0200

    doc: add LTS parameter
---
 docs/antora.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/antora.yml b/docs/antora.yml
index 82a4fb693..f9fb0f2e3 100644
--- a/docs/antora.yml
+++ b/docs/antora.yml
@@ -29,6 +29,7 @@ nav:
 asciidoc:
   attributes:
     requires: "'util=camel-website-util,ck=xref:js/ck.js'"
+    lts: January 2023
     camel-kamelets-version: 0.7.1 # Makefile KAMELET_CATALOG_REPO_BRANCH
     camel-kamelets-docs-version: 0.7.x # Makefile KAMELET_CATALOG_REPO_BRANCH
     camel-k-runtime-version: 1.12.0 # Makefile RUNTIME_VERSION


[camel-k] 01/02: fix(ci): release nightly as an action

Posted by pc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch release-1.8.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 78cf64547beb6f3fcaa5ef146893a597b8312c0a
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Thu Sep 15 11:40:33 2022 +0200

    fix(ci): release nightly as an action
---
 .github/actions/release-nightly/action.yml | 120 +++++++++++++++++++++++++++++
 1 file changed, 120 insertions(+)

diff --git a/.github/actions/release-nightly/action.yml b/.github/actions/release-nightly/action.yml
new file mode 100644
index 000000000..2a3c60976
--- /dev/null
+++ b/.github/actions/release-nightly/action.yml
@@ -0,0 +1,120 @@
+# ---------------------------------------------------------------------------
+# 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.
+name: release-nightly
+description: 'action used to release nightly'
+
+inputs:
+  goVersion:
+    required: true
+    type: string
+  javaVersion:
+    required: true
+    type: string
+  # Make sure to treat the below values confidential (ie, not logging)
+  secretE2ECluster:
+    required: true
+  secretE2EKube:
+    required: true
+  secretDockerHubUser:
+    required: true
+  secretDockerHubPassword:
+    required: true    
+  secretGithubToken:
+    required: true
+
+runs:
+  using: "composite"
+  
+  steps:
+    - name: Set up JDK ${{ inputs.javaVersion }}
+      uses: actions/setup-java@v2
+      with:
+        java-version: ${{ inputs.javaVersion }}
+        distribution: "temurin"
+    - name: Install Go ${{ inputs.goVersion }}
+      uses: actions/setup-go@v2
+      with:
+        go-version: ${{ inputs.goVersion }}
+    - name: Smoke tests
+      uses: ./.github/actions/e2e-common
+      with:
+        cluster-config-data: ${{ inputs.secretE2ECluster }}
+        cluster-kube-config-data: ${{ inputs.secretE2EKube }}
+    - name: Cache modules
+      uses: actions/cache@v1
+      with:
+        path: ~/go/pkg/mod
+        key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
+        restore-keys: |
+          ${{ runner.os }}-go-
+    - name: Get nightly version and update date
+      shell: bash
+      run: |
+        V=$(make get-version | sed s/-SNAPSHOT/-nightly/)
+        D=$(date)
+        echo "VERSION=$V" >> $GITHUB_ENV
+        echo "UPD_DATE=$D" >> $GITHUB_ENV
+    - name: Global Env
+      shell: bash
+      run: |
+        echo "Using VERSION=${{ env.VERSION }}"
+
+        IMAGE_NAME=docker.io/${TEST_DOCKER_HUB_USERNAME:-testcamelk}/camel-k
+        echo "Using IMAGE_NAME=$IMAGE_NAME"
+        echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV
+
+        MAVEN_REPOSITORY=$(make get-staging-repo)
+        echo "Using MAVEN_REPOSITORY=$MAVEN_REPOSITORY"
+        echo "MAVEN_REPOSITORY=$MAVEN_REPOSITORY" >> $GITHUB_ENV
+    - name: Login to Container Registry
+      uses: docker/login-action@v1
+      with:
+        username: ${{ inputs.secretDockerHubUser }}
+        password: ${{ inputs.secretDockerHubPassword }}
+    - name: Codegen
+      shell: bash
+      run: |
+        make VERSION=${{ env.VERSION }} IMAGE_NAME=${{ env.IMAGE_NAME }} codegen set-version build-resources
+    - name: Build
+      shell: bash
+      run: |
+        make VERSION=${{ env.VERSION }} IMAGE_NAME=${{ env.IMAGE_NAME }} release-nightly
+    - name: Check
+      shell: bash
+      run: ls -l
+    - name: Create Release
+      id: create_release
+      uses: ncipollo/release-action@58ae73b360456532aafd58ee170c045abbeaee37
+      with:
+        artifacts: "./camel-k-client*.tar.gz"
+        body: |
+          Apache Camel K ${{ env.VERSION }} build for testing (unstable). This nightly release is using 
+          an **unsupported** operator image published as `${{ env.IMAGE_NAME }}:${{ env.VERSION }}`
+
+          To test it, download the client for your OS and run:
+
+          ```
+          kamel install --olm=false --maven-repository=${{ env.MAVEN_REPOSITORY }}
+          ```
+          
+          NOTE: last updated on ${{ env.UPD_DATE }}
+        token: ${{ inputs.secretGithubToken }}
+        draft: false
+        prerelease: true
+        allowUpdates: true
+        replacesArtifacts: true
+        tag: ${{ env.VERSION }}
+        commit: main