This action configures any combination of common credentials for Onshape build environments.
The AWS profile name to use, Default: "default"
The AWS Access Key ID
The AWS Secret Access Key
The default AWS region, Default: "us-west-2"
Required To configure AWS credentials you must specify at least aws-access-key
and aws-secret-key
The AWS profile name to use for ECR logins, falls back on aws-profile
if not specified
The ID of the AWS ECR registry
The AWS ECR registry's region, Default: "us-east-2"
Required To login to ECR you must specify ecr-registry
The NPM Token
Required To create the ~/.npmrc you must specify npm-token
The SSH Private key contents
The SSH key name, Default: "id_rsa"
Required To create an ssh key you must specify ssh-key
uses: onshape/configure-build-credentials@v1
with:
aws-profile: ${{ env.AWS_PROFILE }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
ecr-registry: ${{ env.ECR_REGISTRY }}
ecr-region: ${{ env.ECR_REGION }}
npm-token: ${{ secrets.NPM_TOKEN }}
ssh-key: ${{ secret.SSH_KEY }}