From 70d7aed4bf5e51dccc761e34089e968e69e957fe Mon Sep 17 00:00:00 2001 From: Chandan Pinjani Date: Thu, 2 Jan 2025 20:14:46 +0530 Subject: [PATCH] Update e2e image tag (#95) Signed-off-by: Chandan Pinjani --- .github/workflows/master-e2e.yaml | 6 ++++-- tests/scripts/deploy-chartmuseum | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/master-e2e.yaml b/.github/workflows/master-e2e.yaml index 1213a65..5a840c8 100644 --- a/.github/workflows/master-e2e.yaml +++ b/.github/workflows/master-e2e.yaml @@ -236,7 +236,6 @@ jobs: QASE_RUN_ID: ${{ needs.pre-qase.outputs.qase_run_id }} # NOTE: this REPORT var is needed for Cypress! QASE_REPORT: 1 - TAG: 0.0.1 TURTLES_REPO: rancher/turtles CONTROLLER_IMG: localhost:5000/$TURTLES_REPO steps: @@ -260,10 +259,13 @@ jobs: go-version-file: go.mod # This step builds latest turtles chart and pushes latest turtles docker image to local docker registry + - name: Set date variable + run: | + echo "TAG=$(date "+%Y.%m.%d")" >> ${GITHUB_ENV} - name: Make chart if: ${{ inputs.operator_nightly_chart == true }} run: | - CONTROLLER_IMG=${{ env.CONTROLLER_IMG }} make e2e-image-build + TAG=v${{ env.TAG }} CONTROLLER_IMG=${{ env.CONTROLLER_IMG }} make e2e-image-build RELEASE_TAG=v${{ env.TAG }} CONTROLLER_IMG=${{ env.CONTROLLER_IMG }} CONTROLLER_IMAGE_VERSION=v${{ env.TAG }} make build-chart docker run -d -p 5000:5000 --name registry registry:2 docker push ${{ env.CONTROLLER_IMG }}:v${{ env.TAG }} diff --git a/tests/scripts/deploy-chartmuseum b/tests/scripts/deploy-chartmuseum index 44a908e..53346d2 100755 --- a/tests/scripts/deploy-chartmuseum +++ b/tests/scripts/deploy-chartmuseum @@ -39,4 +39,4 @@ helm plugin install https://github.com/chartmuseum/helm-push.git helm repo add chartmuseum http://localhost:8080 # Push helm chart to local repo -helm cm-push ./assets/rancher-turtles-0.0.1.tgz chartmuseum +helm cm-push ./assets/rancher-turtles-*.tgz chartmuseum