Skip to content

Commit

Permalink
Adjust image name for dev images
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Nov 22, 2024
1 parent 5905fb9 commit 33b69fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ case "${KUBERNETES_DISTRIBUTION_TYPE}" in
exit 1
esac

helm upgrade --install --create-namespace -n cattle-helm-system helm-project-operator --set image.repository=${REPO:-rancher}/helm-project-operator --set image.tag=${TAG:-dev} ${cluster_args} ${RANCHER_HELM_ARGS} ${latest_chart}
helm upgrade --install --create-namespace -n cattle-helm-system helm-project-operator --set image.registry='',image.repository=${REPO:-rancher}/prometheus-federator/helm-project-operator,image.tag=${TAG:-dev} ${cluster_args} ${RANCHER_HELM_ARGS} ${latest_chart}

echo "PASS: Helm Project Operator has been installed"
2 changes: 1 addition & 1 deletion .github/workflows/hpo-e2e-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run : K3S_VERSION=${{ env.K3S_VERSION }} ./.github/workflows/e2e/scripts/setup-cluster.sh
- name: Import Images Into k3d
run: |
k3d image import ${REPO}/helm-project-operator:${TAG} -c "$CLUSTER_NAME";
k3d image import ${REPO}/prometheus-federator/helm-project-operator:${TAG} -c "$CLUSTER_NAME";
- name: Setup kubectl context
run: |
kubectl config use-context "k3d-$CLUSTER_NAME";
Expand Down
6 changes: 5 additions & 1 deletion scripts/version
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ if echo "$TAG" | grep -q dirty; then
HELM_IMAGE_TAG=$TAG
HELM_CHART_VERSION=${HELM_CHART_VERSION_DEV:-${HELM_IMAGE_TAG/v/}}
fi
IMAGE=${IMAGE:-"$REPO/${BUILD_TARGET}:${TAG}"}
if [ "$BUILD_TARGET" != "prometheus-federator" ]; then
IMAGE=${IMAGE:-"$REPO/prometheus-federator/${BUILD_TARGET}:${TAG}"}
else
IMAGE=${IMAGE:-"$REPO/${BUILD_TARGET}:${TAG}"}
fi

function print_version_debug() {
echo "DIRTY: $DIRTY"
Expand Down

0 comments on commit 33b69fc

Please sign in to comment.