Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): use new infra configuration #5767

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 26 additions & 36 deletions .github/actions/release-nightly/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,42 +42,6 @@ runs:

steps:

- name: Set up JDK ${{ inputs.javaVersion }}
uses: actions/setup-java@v4
with:
java-version: ${{ inputs.javaVersion }}
distribution: "temurin"

- name: Install Go ${{ inputs.goVersionFile }}
uses: actions/setup-go@v5
with:
go-version-file: ${{ inputs.goVersionFile }}
check-latest: true

- name: Common smoke tests
uses: ./.github/actions/e2e-common
with:
cluster-config-data: ${{ inputs.secretE2ECluster }}
cluster-kube-config-data: ${{ inputs.secretE2EKube }}
smoke-test-only: true

- 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

- name: Install newer docker CLI supporting multi platform build
shell: bash
run: |
Expand All @@ -96,6 +60,32 @@ runs:
- name: Set up QEMU (required by multi platform build)
uses: docker/setup-qemu-action@v3

- name: Infra setting
uses: ./.github/actions/infra-setting

- name: Install operator
shell: bash
run: |
kubectl create ns camel-k
make install-k8s-global
kubectl wait --for=jsonpath='{.status.phase}'=Ready itp camel-k -n camel-k --timeout=60s

- name: Run test
shell: bash
run: |
DO_TEST_PREBUILD=false GOTESTFMT="-json 2>&1 | gotestfmt" make test-common

- 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
IMAGE_NAME=docker.io/${TEST_DOCKER_HUB_USERNAME:-testcamelk}/camel-k
echo "Using IMAGE_NAME=$IMAGE_NAME"
echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV

- name: Login to staging container registry
uses: docker/login-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ref-branch: [main, release-2.3.x, release-2.4.x]
ref-branch: [main, release-2.4.x]

if: github.repository == 'apache/camel-k'
runs-on: ubuntu-latest
Expand Down