Skip to content

Commit

Permalink
use separate chart version
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb committed Aug 31, 2023
1 parent 4d92a6c commit cb0cfa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion k8s/microservices.bats
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ setup_file() {
export ROCKETCHAT_TAG
export ROCKETCHAT_CHART_DIR
export ROCKETCHAT_CHART_ARCHIVE="${ROCKETCHAT_CHART_DIR%/}/rocketchat-${ROCKETCHAT_TAG}.tgz"
export HELM_TAG="${HELM_TAG:-$ROCKETCHAT_TAG}"
}

# bats test_tags=pre
Expand Down Expand Up @@ -49,7 +50,7 @@ setup_file() {
if [[ -f "$ROCKETCHAT_CHART_ARCHIVE" ]]; then
skip "chart package already exists"
fi
run_and_assert_success helm package --app-version "$ROCKETCHAT_TAG" --version "$ROCKETCHAT_TAG" "$ROCKETCHAT_CHART_DIR" -d "$(dirname "$ROCKETCHAT_CHART_ARCHIVE")"
run_and_assert_success helm package --app-version "$ROCKETCHAT_TAG" --version "$HELM_TAG" "$ROCKETCHAT_CHART_DIR" -d "$(dirname "$ROCKETCHAT_CHART_ARCHIVE")"
assert [ -f "$ROCKETCHAT_CHART_ARCHIVE" ]
}

Expand Down
3 changes: 2 additions & 1 deletion k8s/monolith.bats
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ setup_file() {
export ROCKETCHAT_TAG
export ROCKETCHAT_CHART_DIR
export ROCKETCHAT_CHART_ARCHIVE="${ROCKETCHAT_CHART_DIR%/}/rocketchat-${ROCKETCHAT_TAG}.tgz"
export HELM_TAG="${HELM_TAG:-$ROCKETCHAT_TAG}"
}

# bats test_tags=pre
Expand Down Expand Up @@ -48,7 +49,7 @@ setup_file() {
if [[ -f "$ROCKETCHAT_CHART_ARCHIVE" ]]; then
skip "chart package already exists"
fi
run_and_assert_success helm package --app-version "$ROCKETCHAT_TAG" --version "$ROCKETCHAT_TAG" "$ROCKETCHAT_CHART_DIR" -d "$(dirname "$ROCKETCHAT_CHART_ARCHIVE")"
run_and_assert_success helm package --app-version "$ROCKETCHAT_TAG" --version "$HELM_TAG" "$ROCKETCHAT_CHART_DIR" -d "$(dirname "$ROCKETCHAT_CHART_ARCHIVE")"
assert [ -f "$ROCKETCHAT_CHART_ARCHIVE" ]
}

Expand Down

0 comments on commit cb0cfa4

Please sign in to comment.