I am using AWS ECR (public) for docker registry purposes for Frappe Cloud Setup.
For this to work I created an IAM user in AWS and granted this policy:
AmazonElasticContainerRegistryPublicFullAccess
Then I used this command to generate password:
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/b1c1d1e2
I used the generated long text password/token in Docker Registry Password:
But the problem is the token expires after 12 hours. It means I need to manually create token and save it everytime I need to push docker image.
Is there no way to automate this ? How does Press handle it ?