Skip to content

Commit 54327d4

Browse files
committed
coiper
1 parent 36c317b commit 54327d4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v0.0.7-32-gbd0b25b
2+
_commit: v0.0.7-33-geffce09
33
_src_path: gh:LabAutomationAndScreening/copier-base-template.git
44
description: Copier template for creating Python libraries and executables
55
python_ci_versions:

template/.devcontainer/code-artifact-auth.sh.jinja

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% if python_package_registry is defined and python_package_registry == "AWS CodeArtifact" %}{% raw %}#!/usr/bin/env bash
2-
set -e
2+
set -ex
33

44
# If none of these are set we can't possibly continue and should fail so you can fix it
55
if [ -z "$AWS_PROFILE" ] && [ -z "$AWS_ACCESS_KEY_ID" ] && [ -z "$CODEARTIFACT_AUTH_TOKEN" ]; then
@@ -29,19 +29,23 @@ else
2929
echo "Using existing AWS credentials: $caller_identity"
3030
fi
3131

32+
set +x
3233
export CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token \
3334
--domain {% endraw %}{{ repo_org_name }}{% raw %} \
3435
--domain-owner {% endraw %}{{ aws_central_infrastructure_account_id }}{% raw %} \
3536
--region {% endraw %}{{ aws_org_home_region }}{% raw %} \
3637
--query authorizationToken \
3738
--output text $PROFILE_ARGS)
39+
set -x
3840
fi
3941

4042
export UV_INDEX_CODE_ARTIFACT_PRIMARY_USERNAME=aws
41-
echo "::add-mask::$UV_INDEX_CODE_ARTIFACT_PRIMARY_PASSWORD" # ensure this doesn't show up in the CI logs
43+
set +x
4244
export UV_INDEX_CODE_ARTIFACT_PRIMARY_PASSWORD="$CODEARTIFACT_AUTH_TOKEN"
45+
set -x
4346
export UV_INDEX_CODE_ARTIFACT_STAGING_USERNAME=aws
44-
echo "::add-mask::$UV_INDEX_CODE_ARTIFACT_STAGING_PASSWORD" # ensure this doesn't show up in the CI logs
47+
set +x
4548
export UV_INDEX_CODE_ARTIFACT_STAGING_PASSWORD="$CODEARTIFACT_AUTH_TOKEN"
49+
set -x
4650

4751
fi{% endraw %}{% else %}{% raw %}# Placeholder file not being used by these copier template answers{% endraw %}{% endif %}

0 commit comments

Comments
 (0)