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/03/10 13:53:12 UTC
[camel-k] branch main updated: fix(ci): creating nightly tag
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 11a408c fix(ci): creating nightly tag
11a408c is described below
commit 11a408c127fdaeeec57d2e0e1c73d4f34c0b9750
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Thu Mar 10 12:15:46 2022 +0100
fix(ci): creating nightly tag
---
.github/workflows/nightly-tag.yaml | 39 ++++++++++++++++++++++++++++++++++++++
.github/workflows/release.yml | 5 +++--
2 files changed, 42 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/nightly-tag.yaml b/.github/workflows/nightly-tag.yaml
new file mode 100644
index 0000000..dd6891e
--- /dev/null
+++ b/.github/workflows/nightly-tag.yaml
@@ -0,0 +1,39 @@
+# ---------------------------------------------------------------------------
+# 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: "Nightly"
+
+on:
+ schedule:
+ - cron: "59 23 * * *"
+
+jobs:
+ nightly:
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v2
+ - name: Get tag
+ shell: bash
+ run: |
+ V=$(make get-version | sed s/-SNAPSHOT/-nightly.$(date +%Y%m%d%H%M)/)
+ echo "TAG=$V" >> $GITHUB_ENV
+ - name: Push tag
+ uses: rickstaa/action-create-tag@v1
+ with:
+ tag: ${{ env.TAG }}
+
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f41caea..7c6bf61 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -50,8 +50,9 @@ jobs:
TEST_DOCKER_HUB_PASSWORD: ${{ secrets.TEST_DOCKER_HUB_PASSWORD }}
run: |
TAG=${GITHUB_REF##*/}
- echo "Using VERSION=$TAG"
- echo "VERSION=$TAG" >> $GITHUB_ENV
+ VERSION=${TAG:1}
+ echo "Using VERSION=$VERSION"
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
IMAGE_NAME=docker.io/${TEST_DOCKER_HUB_USERNAME:-testcamelk}/camel-k
echo "Using IMAGE_NAME=$IMAGE_NAME"