Skip to content

Commit

Permalink
fix(ci): attempt for a single nightly release
Browse files Browse the repository at this point in the history
Closes #3107
  • Loading branch information
squakez committed Mar 14, 2022
1 parent 1519583 commit ecd847f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 48 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/nightly-tag.yaml

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
name: release

on:
push:
tags:
- '*nightly*'
schedule:
- cron: "50 23 * * *"

jobs:
release:
Expand All @@ -43,16 +42,17 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get nightly version
shell: bash
run: |
V=$(make get-version | sed s/-SNAPSHOT/-nightly/)
echo "VERSION=$V" >> $GITHUB_ENV
- name: Global Env
env:
TEST_DOCKER_HUB_USERNAME: ${{ secrets.TEST_DOCKER_HUB_USERNAME }}
TEST_DOCKER_HUB_PASSWORD: ${{ secrets.TEST_DOCKER_HUB_PASSWORD }}
run: |
TAG=${GITHUB_REF##*/}
VERSION=${TAG:1}
echo "Using VERSION=$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Using VERSION=${{ env.VERSION }}"
IMAGE_NAME=docker.io/${TEST_DOCKER_HUB_USERNAME:-testcamelk}/camel-k
echo "Using IMAGE_NAME=$IMAGE_NAME"
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
tag_name: ${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
body: |
Apache Camel K nightly build for testing (unstable).
Apache Camel K ${{ env.VERSION }} build for testing (unstable).
To test it, download the client for your OS and run:
Expand Down

0 comments on commit ecd847f

Please sign in to comment.