This GitHub Action retrieves ECR login credentials from Quant Cloud and sets them up for Docker authentication.
- name: Get ECR Credentials
uses: quantcdn/quant-cloud-ecr-action@v1
id: ecr-login
with:
api_key: ${{ secrets.QUANT_API_KEY }}
organization: your-org-name
base_url: https://api.quant.cloud # Optional
- name: Login to ECR
uses: docker/login-action@v3
with:
registry: ${{ steps.ecr-login.outputs.endpoint }}
username: ${{ steps.ecr-login.outputs.username }}
password: ${{ steps.ecr-login.outputs.password }}api_key: Your Quant Cloud API key (required)organization: Your Quant Cloud organisation name (required)base_url: Quant Cloud API base URL (optional)
username: ECR usernamepassword: ECR password (automatically masked in logs)endpoint: ECR registry endpoint
- Install dependencies:
npm install- Build the action:
npx ncc build src/index.ts- Run tests locally using act:
act workflow_dispatch -W .github/workflows/test.yml --secret-file .secrets- Update version in
package.json - Create and push a new tag:
git tag v1.0.0
git push origin v1.0.0The release workflow will automatically:
- Build the action
- Create a GitHub release
- Package the action for the marketplace