Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Docker Multi-Arch Build and ECR Push

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [IMAGE_NAME]
  • [AWS_REGION]
  • [PLATFORMS]
docker-multi-arch-ecr-push.txt
Design a high-performance GitHub Actions workflow for building multi-architecture Docker images for [PLATFORMS]. Configure the workflow to: 1) Authenticate with AWS ECR using OIDC (IAM Roles for GitHub Actions). 2) Use Docker Buildx to build and push the image [IMAGE_NAME]. 3) Implement layer caching using the GitHub Actions cache backend. 4) Tag images automatically with the Git SHA and 'latest' tag. Provide the necessary IAM policy requirements as a comment within the YAML.

Example Output

"A workflow featuring 'docker/setup-buildx-action' and 'aws-actions/configure-aws-credentials' with explicit multi-platform build arguments."