File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 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
44description : Copier template for creating Python libraries and executables
55python_ci_versions :
Original file line number Diff line number Diff line change 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
55if [ -z "$AWS_PROFILE" ] && [ -z "$AWS_ACCESS_KEY_ID" ] && [ -z "$CODEARTIFACT_AUTH_TOKEN" ]; then
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
4751fi{% endraw %}{% else %}{% raw %} # Placeholder file not being used by these copier template answers{% endraw %}{% endif %}
You can’t perform that action at this time.
0 commit comments