From aef5a056d09b22e2c6ce2fa8038632c912e11637 Mon Sep 17 00:00:00 2001 From: Pytgaen <32298455+pytgaen@users.noreply.github.com> Date: Sun, 7 Apr 2024 17:45:50 +0200 Subject: [PATCH] feat: some log improvement --- templates/gitlab-ci-python-gcp.yml | 3 ++- templates/gitlab-ci-python.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/gitlab-ci-python-gcp.yml b/templates/gitlab-ci-python-gcp.yml index 5ca0be4..c35050d 100644 --- a/templates/gitlab-ci-python-gcp.yml +++ b/templates/gitlab-ci-python-gcp.yml @@ -21,7 +21,8 @@ variables: .gcp-provider-auth: before_script: - - echo "Installing GCP authentication with env GOOGLE_APPLICATION_CREDENTIALS file" + - set -e + - echo -e "[\\e[1;94mINFO\\e[0m] Installing GCP authentication with env GOOGLE_APPLICATION_CREDENTIALS file" - echo $GCP_JWT > "$CI_BUILDS_DIR/.auth_token.jwt" - |- cat << EOF > "$CI_BUILDS_DIR/google_application_credentials.json" diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml index 0a55f42..0bd873a 100644 --- a/templates/gitlab-ci-python.yml +++ b/templates/gitlab-ci-python.yml @@ -759,7 +759,7 @@ variables: poetry build ${TRACE+--verbose} fi - log_info "--- publish packages (poetry)..." + log_info "--- publish packages (poetry) to $PYTHON_REPOSITORY_URL with user $PYTHON_REPOSITORY_USERNAME..." poetry config repositories.user_defined "$PYTHON_REPOSITORY_URL" poetry publish ${TRACE+--verbose} --username "$PYTHON_REPOSITORY_USERNAME" --password "$PYTHON_REPOSITORY_PASSWORD" --repository user_defined else @@ -773,7 +773,7 @@ variables: python -m build fi - log_info "--- publish packages (twine)..." + log_info "--- publish packages (twine) to $PYTHON_REPOSITORY_URL with user $PYTHON_REPOSITORY_USERNAME..." twine upload ${TRACE+--verbose} --username "$PYTHON_REPOSITORY_USERNAME" --password "$PYTHON_REPOSITORY_PASSWORD" --repository-url "$PYTHON_REPOSITORY_URL" dist/* fi } -- GitLab