diff --git a/README.md b/README.md index fb521cc063d035fa532a9273dbfe746b476f00f5..d3429c0a91338053fe9a7c398b457c0a2fd016f6 100644 --- a/README.md +++ b/README.md @@ -638,13 +638,13 @@ then set the required configuration. ```yaml include: - - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python@7.3.2 + - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python@7.5.0 # 2: set/override component inputs inputs: image: registry.hub.docker.com/library/python:3.12-slim pytest-enabled: true - - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python-aws-ca@7.3.2 + - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python-aws-codeartifact@7.5.0 inputs: aws-region: "us-east-1" aws-codeartifact-domain: "acme" diff --git a/templates/gitlab-ci-python-aws-codeartifact.yml b/templates/gitlab-ci-python-aws-codeartifact.yml index f95fd93b2c8bba70abcb92afa5d59316287abe7b..60baea0c05de835f801a4090f0b0db3977dc2641 100644 --- a/templates/gitlab-ci-python-aws-codeartifact.yml +++ b/templates/gitlab-ci-python-aws-codeartifact.yml @@ -35,7 +35,7 @@ variables: .codeartifact-pip-config: before_script: - - CODEARTIFACT_URL=https://aws:${CODEARTIFACT_AUTH_TOKEN}@${CODEARTIFACT_REPOSITORY_ENDPOINT#https://}simple + - CODEARTIFACT_URL=https://aws:${PYTHON_REPOSITORY_PASSWORD}@${PYTHON_REPOSITORY_URL#https://}simple - pip config set global.index-url $CODEARTIFACT_URL .python-base: @@ -49,12 +49,13 @@ variables: AWS_JWT: aud: "$AWS_OIDC_AUD" variables: - CODEARTIFACT_AUTH_TOKEN: "@url@http://aws-auth-provider/codeartifact/auth/token" - CODEARTIFACT_REPOSITORY_ENDPOINT: "@url@http://aws-auth-provider/codeartifact/repository/endpoint?format=pypi" + PYTHON_REPOSITORY_USERNAME: aws + PYTHON_REPOSITORY_PASSWORD: "@url@http://aws-auth-provider/codeartifact/auth/token" + PYTHON_REPOSITORY_URL: "@url@http://aws-auth-provider/codeartifact/repository/endpoint?format=pypi" AWS_JWT: "$AWS_JWT" before_script: - - !reference [.codeartifact-pip-config:] - !reference [.python-scripts] - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}" - cd ${PYTHON_PROJECT_DIR} - guess_build_system + - !reference [.codeartifact-pip-config, before_script]