Skip to content

Commit

Permalink
Remove debug commands; fix bad bash function name
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Jan 25, 2024
1 parent 547b467 commit 08de55e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build_test_publish_trails.sh
Expand Up @@ -9,7 +9,7 @@ source "./kosli_trails.sh"
source "./echo_versioner_env_vars.sh"
export $(echo_versioner_env_vars)

on_ci_kosli_create_trail
on_ci_kosli_begin_trail

./build.sh
on_ci_publish_images
Expand Down
17 changes: 4 additions & 13 deletions sh/kosli_trails.sh
Expand Up @@ -15,26 +15,17 @@ kosli_create_trail()
local -r hostname="${1}"
local -r api_token="${2}"

echo "KOSLI_ORG=:${KOSLI_ORG}:"

kosli create flow "${KOSLI_FLOW}" \
--debug \
--description="Group/Kata model+persistence" \
--host="${hostname}" \
--api-token="${api_token}" \
--template-file="$(repo_root)/.kosli.yml" \
--visibility=public

echo "Flow ${KOSLI_FLOW} was created"
echo Now trying to begin Kosli trail...

kosli begin trail "${GITHUB_SHA}" \
--host="${hostname}" \
--api-token="${api_token}" \
--debug \
--repo-root="$(repo_root)"

echo ...Kosli trail was begun
}

# - - - - - - - - - - - - - - - - - - -
Expand Down Expand Up @@ -119,16 +110,16 @@ kosli_expect_deployment()
}

# - - - - - - - - - - - - - - - - - - -
on_ci_kosli_create_trail()
on_ci_kosli_begin_trail()
{
if on_ci; then
kosli_create_trail "${KOSLI_HOST_STAGING}" "${KOSLI_API_TOKEN_STAGING}"
kosli_create_trail "${KOSLI_HOST_PRODUCTION}" "${KOSLI_API_TOKEN}"
kosli_begin_trail "${KOSLI_HOST_STAGING}" "${KOSLI_API_TOKEN_STAGING}"
kosli_begin_trail "${KOSLI_HOST_PRODUCTION}" "${KOSLI_API_TOKEN}"
fi
}

# - - - - - - - - - - - - - - - - - - -
on_ci_kosli_report_artifact()
on_ci_kosli_attest_artifact()
{
if on_ci; then
kosli_attest_artifact "${KOSLI_HOST_STAGING}" "${KOSLI_API_TOKEN_STAGING}"
Expand Down

0 comments on commit 08de55e

Please sign in to comment.